@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f3f4f6;
  transition: all 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Header with solid color instead of gradient */
.header {
  background-color: #6366f1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto;
}

main.container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#dashboardContent {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.nav-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-button:hover::after {
  transform: scaleX(1);
}

.nav-button:hover {
  transform: translateY(-2px);
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
  height: auto;
}

.dashboard-header {
  margin-bottom: 5px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 10px;
}

.dashboard-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 5px;
}

.stat-label {
  color: #6b7280;
  font-size: 0.9rem;
}

.workload-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.table-header {
  background: #f9fafb;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.table-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.table-container {
  overflow-x: auto;
}

.workload-data-table {
  width: 100%;
  border-collapse: collapse;
}

.workload-data-table th,
.workload-data-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.workload-data-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.workload-data-table td {
  color: #1f2937;
}

.workload-data-table tr:hover {
  background: #f9fafb;
}

.total-hours {
  font-weight: 600;
  color: #059669;
}

.search-container {
  animation: fadeIn 0.5s ease-out;
  margin-top: 5px !important;
}

/* Filter container styles - make labels inline with dropdowns */
.filter-container {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  margin-bottom: 0px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 60;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.filter-group label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  white-space: nowrap;
  min-width: 80px;
}

.filter-group select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 0.875rem;
  color: #374151;
  min-width: 150px;
}

.filter-group #yearSelect[data-year-picker="true"] {
  display: none;
}

.dashboard-year-picker {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.dashboard-year-input {
  cursor: pointer;
  width: 100%;
}

.dashboard-year-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: 100%;
  max-height: none;
  overflow: visible;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  padding: 6px;
  display: none;
  z-index: 2500;
}

.dashboard-year-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
}

.dashboard-year-popover-title {
  font-weight: 700;
  color: #111827;
  font-size: 12px;
  text-align: center;
  flex: 1;
}

.dashboard-year-nav {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.dashboard-year-nav:hover {
  background: #f3f4f6;
}

.dashboard-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
}

.dashboard-year-cell {
  width: 100%;
  text-align: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #111827;
  font-weight: 700;
}

.dashboard-year-cell:hover {
  background: rgba(108, 92, 231, 0.10);
}

.dashboard-year-cell.current {
  background: rgba(108, 92, 231, 0.08);
}

.dashboard-year-cell.selected {
  background: rgba(108, 92, 231, 0.16);
  border: 1px solid rgba(108, 92, 231, 0.35);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  margin-top: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  animation: slideIn 0.5s ease-out;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-wrapper::-webkit-scrollbar {
  width: 0;
  height: 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.75rem;
  table-layout: fixed;
}

th,
td {
  padding: 0.5rem 0.25rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

th {
  background-color: #f3f4f6;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 30;
  color: #374151;
  box-shadow: 0 1px 0 #e5e7eb;
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background-color: #f9fafb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.col-staff {
  width: 100px;
  text-align: left;
  position: sticky;
  left: 0;
  background-color: inherit;
  z-index: 20;
}

.col-rank {
  width: 120px;
  position: sticky;
  left: 100px;
  background-color: inherit;
  z-index: 20;
}

th.col-staff,
th.col-rank {
  background-color: #f3f4f6;
  z-index: 80;
}

td.col-staff,
td.col-rank {
  z-index: 40;
}

.col-assignment {
  width: 40%;
  text-align: left;
  left: 0;
}

.col-workload {
  width: 8%;
}

.col-load {
  width: 8%;
  font-weight: 600;
  color: #4f46e5;
  background-color: #eef2ff;
}

/* Assignment codes styling */
.assignment-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.assignment-code {
  display: inline-block;
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.assignment-code:hover {
  background-color: #c7d2fe;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.workload-cell {
  position: relative;
}

.workload-cell::after {
  display: none;
}

.load-cell {
  transition: all 0.3s ease;
}

.load-cell.updated {
  animation: pulse 1s ease;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Stripe effect */
tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Responsive font sizes */
@media (min-width: 1024px) {
  table {
    font-size: 0.875rem;
  }
  th {
    font-size: 0.75rem;
  }
}

/* Animation for new rows */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.table-row {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* Staggered animation delay for rows */
.table-row:nth-child(1) {
  animation-delay: 0.1s;
}
.table-row:nth-child(2) {
  animation-delay: 0.2s;
}
.table-row:nth-child(3) {
  animation-delay: 0.3s;
}
.table-row:nth-child(4) {
  animation-delay: 0.4s;
}
.table-row:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

select {
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Modal overlay styles - ENSURE THEY ARE HIDDEN BY DEFAULT */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none !important; /* Force hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 800px;
  padding: 1rem;
  transform: scale(0.95);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  isolation: isolate;
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.login-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

/* Animation for the registration form */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#registrationForm .grid > div {
  animation: slideUpFade 0.3s ease forwards;
}

/* Form field focus effect */
.login-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: none;
}

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

/* Loading spinner for the register button */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid white;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Content containers */
#dashboardContent,
#analyticsContent,
#preferenceContent {
  transition: all 0.5s ease;
}

.hidden-content {
  display: none !important;
}

.visible-content {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  height: auto;
  position: relative;
  pointer-events: auto;
  animation: fadeIn 0.5s ease;
  width: 100%;
}

#dashboardContent.visible-content {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

/* Manager content specific styling */
#managerContent.visible-content {
  padding: 0;
  margin: 0;
  background-color: transparent;
  height: calc(100vh - 80px);
  width: 100%;
  overflow: hidden;
}

#managerFrame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background-color: white;
}

/* Manager login overlay - with glassy blur effect */
.manager-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.manager-login-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Preference overlay - with glassy blur effect */
.preference-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(0) !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}

.preference-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Enhanced login container with animations */
.login-container {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.manager-login-overlay.show .login-container,
.preference-overlay.show .login-container {
  transform: scale(1);
  opacity: 1;
}

/* Enhanced login form elements */
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #f9fafb;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.login-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.login-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4b5563;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.login-input:focus + .login-label {
  color: #6366f1;
}

.login-button {
  width: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.login-button:hover::before {
  left: 100%;
}

.login-button:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-footer {
  margin-top: 2px;
  margin-bottom: 6px;
  text-align: center;
}

.forgot-password-link {
  background: none;
  border: none;
  padding: 0;
  color: #6366f1;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.forgot-password-link:hover {
  color: #4f46e5;
  transform: translateY(-1px);
}

.forgot-password-link:active {
  transform: translateY(0);
}

.reset-btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.reset-btn-row .login-button {
  margin-top: 0;
}

.reset-cancel-button {
  flex: 1;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-cancel-button:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(17, 24, 39, 0.08);
}

.reset-cancel-button:active {
  transform: translateY(0);
}

/* Enhanced close button */
.login-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(99, 102, 241, 0.1);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #6366f1;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-close-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: rotate(90deg);
}

.login-close-btn svg {
  width: 16px;
  height: 16px;
}

/* Login header with icon */
.login-header {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: white;
  font-size: 24px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.login-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  max-width: 280px;
}

/* Error message animation */
.login-error {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.login-error.show {
  transform: translateY(0);
  opacity: 1;
}

/* Form group with floating label effect */
.form-floating {
  position: relative;
  margin-bottom: 20px;
}

.form-floating .login-input {
  height: 56px;
  padding: 1rem 0.75rem 0;
  margin-bottom: 0;
}

.form-floating .login-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating .login-input:focus ~ .login-label,
.form-floating .login-input:not(:placeholder-shown) ~ .login-label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Modern Toast Styles */
.custom-toast {
  background: white;
  color: #1f2937;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "Inter", sans-serif;
  max-width: 380px;
  margin: 0 auto;
  animation: slideInDown 0.3s ease-out;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

/* Dropdown notification styles */
.dropdown-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  animation: slideIn 0.3s ease-out forwards;
}

.dropdown-notification.closing {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.dropdown-notification-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px 8px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-notification-title-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-notification-title-container svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dropdown-notification-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.dropdown-notification-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.dropdown-notification-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.dropdown-notification-body {
  padding: 8px 16px 16px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

/* Error notification styles */
.dropdown-notification.error .dropdown-notification-title-container svg {
  color: #dc2626;
}

.dropdown-notification.error .dropdown-notification-title {
  color: #dc2626;
}

.dropdown-notification.error {
  border-left: 4px solid #dc2626;
}

/* Success notification styles */
.dropdown-notification.success .dropdown-notification-title-container svg {
  color: #059669;
}

.dropdown-notification.success .dropdown-notification-title {
  color: #059669;
}

.dropdown-notification.success {
  border-left: 4px solid #059669;
}

/* Warning notification styles */
.dropdown-notification.warning .dropdown-notification-title-container svg {
  color: #d97706;
}

.dropdown-notification.warning .dropdown-notification-title {
  color: #d97706;
}

.dropdown-notification.warning {
  border-left: 4px solid #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 5px;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stat-card {
    padding: 8px;
  }

  .table-header {
    padding: 8px;
  }

  .workload-data-table th,
  .workload-data-table td {
    padding: 6px;
    font-size: 0.875rem;
  }

  .assignment-codes {
    flex-direction: column;
    align-items: flex-start;
  }

  .col-staff {
    width: 100px;
  }

  .col-rank {
    width: 80px;
    left: 100px;
  }

  .col-assignment {
    width: 150px;
  }

  /* Responsive filter layout */
  .filter-container {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: auto;
  }

  .filter-group label {
    min-width: auto;
    font-size: 0.8rem;
  }

  .filter-group select {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 5px;
  }

  .dashboard-title {
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .workload-data-table {
    font-size: 0.8rem;
  }

  .workload-data-table th,
  .workload-data-table td {
    padding: 4px;
  }

  .assignment-code {
    font-size: 0.7rem;
    padding: 1px 4px;
  }
}

/* Hidden utility class */
.hidden {
  display: none !important;
}

/* Text utilities */
.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-red-500 {
  color: #ef4444;
}

/* Background utilities */
.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* Spacing utilities */
.mb-4 {
  margin-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Border radius utilities */
.rounded-lg {
  border-radius: 0.5rem;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Font utilities */
.font-medium {
  font-weight: 500;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Password toggle button styles */
.form-floating {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #4b5563;
}

.password-toggle:focus {
  outline: none;
  color: #6366f1;
}

/* Add these keyframe animations at the end of the file */

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Spinner animation for login button */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

/* Add floating animation to the login icon */
.login-icon {
  animation: pulse 2s infinite ease-in-out;
}

/* Add slide-up animation to form elements */
.form-floating {
  animation: slideUp 0.5s ease-out forwards;
}

.form-floating:nth-child(1) {
  animation-delay: 0.1s;
}

.form-floating:nth-child(2) {
  animation-delay: 0.2s;
}

.login-button {
  animation: slideUp 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* Add subtle hover effect to input fields */
.login-input:hover {
  background-color: #f3f4f6;
}

/* Slide in from right animation */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide in from top animation */
@keyframes slideInDown {
  from {
    transform: translateY(-20px) translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}


/* Preference status popup styles */
.preference-status-popup {
  position: fixed;
  top: -100px;
  right: 20px;
  width: 380px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.preference-status-popup.show {
  top: 80px;
  opacity: 1;
}

.preference-status-popup.hide {
  opacity: 0;
  top: -100px;
}

.preference-status-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.preference-status-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.preference-status-icon.closed {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.preference-status-text {
  flex: 1;
  min-width: 0;
}

.preference-status-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.4;
}

.preference-status-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
  .preference-status-popup {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }

  .preference-status-popup.show {
    top: 70px;
  }
}