/* Neumorphic Election Theme */
:root {
  --bg: #e6e7ee;
  --primary: #31344b;
  --secondary: #44476a;
  --text: #31344b;
  --shadow-light: #ffffff;
  --shadow-dark: #b8b9c5;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

/* Neumorphic base styles */
.neumorphic {
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 8px 8px 15px var(--shadow-dark),
             -8px -8px 15px var(--shadow-light);
}

.neumorphic-inset {
  border-radius: 12px;
  background: var(--bg);
  box-shadow: inset 5px 5px 10px var(--shadow-dark),
             inset -5px -5px 10px var(--shadow-light);
}

/* Header */
.header {
  @extend .neumorphic;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
}

.header h1 {
  font-weight: 600;
  margin: 0;
  font-size: 2.2rem;
  color: var(--primary);
  text-shadow: 1px 1px 2px var(--shadow-dark);
}

.tagline {
  font-weight: 400;
  margin-top: 0.5rem;
  color: var(--text);
}

/* Voting Container */
.voting-container {
  @extend .neumorphic;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
}

.position-title {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}

/* Candidate Cards */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.candidate-card {
  @extend .neumorphic;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.candidate-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark),
             -10px -10px 20px var(--shadow-light);
}

.candidate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--secondary);
}

.candidate-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

.candidate-platform {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Buttons */
.vote-btn {
  @extend .neumorphic-inset;
  color: var(--primary);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

.vote-btn:hover {
  @extend .neumorphic;
  color: var(--secondary);
}

/* Submit Button */
.submit-btn {
  @extend .neumorphic;
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 3rem auto 0;
  display: block;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  color: var(--secondary);
  transform: translateY(-3px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .candidate-grid {
    grid-template-columns: 1fr;
  }
  
  .header {
    padding: 1.5rem 0;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
}
