/* Custom Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
  --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff000d 100%);
  --glad-gradient: linear-gradient(135deg, #ffd93d 0%, #ff9a3d 100%);
  --sad-gradient: linear-gradient(135deg, #3da9ff 0%, #3d4aff 100%);
  --mad-gradient: linear-gradient(135deg, #ff3d3d 0%, #ff3d8f 100%);
  --transition-speed: 0.3s;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  color: #000;
  transition: color 0.3s;
}

.navbar-brand:hover {
  color: #000dff;
}

.auth-buttons .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login {
  background: transparent;
  border: 2px solid #000dff;
  color: #000dff;
}

.btn-signup {
  background: linear-gradient(to right, #000dff, #6a00ff);
  border: none;
  color: white;
}

.btn-logout {
  background: #ff4d4d;
  color: white;
  border: none;
}

.auth-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.user-name {
  font-size: 1rem;
  color: #333;
}


/* Responsive tweaks */
@media (max-width: 991.98px) {
  /* Hide center logo on mobile */
  .navbar .position-absolute {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  /* Hide center logo on mobile */
  .navbar .position-absolute {
    display: none !important;
  }
}

/* Main Container */
.main-container {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mood-header {
  margin-bottom: 3rem;
}

.mood-header h1 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Mood Cards Container */
.mood-container {
  padding: 2rem 0;
}

.mood-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

/* Mood Card Styles */
.mood-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
  box-shadow: var(--card-shadow);
  animation: float 3s ease-in-out infinite;
}

.mood-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-gradient);
  transition: height var(--transition-speed);
}

.mood-card.glad::before {
  background: var(--glad-gradient);
}

.mood-card.sad::before {
  background: var(--sad-gradient);
}

.mood-card.mad::before {
  background: var(--mad-gradient);
}

.mood-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mood-card:hover::before {
  height: 100%;
  opacity: 0.1;
}

.mood-content {
  position: relative;
  z-index: 1;
}

.mood-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  transition: transform var(--transition-speed);
}

.mood-card:hover .mood-emoji {
  transform: scale(1.2) rotate(5deg);
}

.mood-card h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Reason Form Styles */
.reason-form {
  margin-top: 1.5rem;
}

.form-select,
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem;
  margin-bottom: 1rem;
  transition: all var(--transition-speed);
}

.form-select:focus,
.form-control:focus {
  border-color: #000dff;
  box-shadow: 0 0 0 0.25rem rgba(0, 13, 255, 0.1);
}

.submit-mood {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  width: 100%;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.submit-mood:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-title {
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .auth-buttons .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .mood-header h1 {
    font-size: 2rem;
  }

  .mood-emoji {
    font-size: 3rem;
  }

  .mood-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }

  .modal-dialog {
    margin: 1rem;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}


.mood-card:nth-child(2) {
  animation-delay: 0.2s;
}

.mood-card:nth-child(3) {
  animation-delay: 0.4s;
}
/* Employee ID Validation Feedback */
.employee-id-feedback {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.employee-id-feedback.text-success {
  color: #28a745;
}

.employee-id-feedback.text-danger {
  color: #dc3545;
}

.employee-id-feedback.text-warning {
  color: #ffc107;
}

/* Input validation states */
#signupEmployeeID.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}

#signupEmployeeID.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  padding-right: calc(1.5em + 0.75rem);
}
