:root {
  --bg-color: #e6eaf0;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --shadow-light: rgba(255, 255, 255, 0.9);
  --shadow-dark: rgba(163, 177, 198, 0.7);
  --accent-color: #0984e3;
  --accent-hover: #0773c5;
  --danger-color: #e74c3c;
  --success-color: #27ae60;
  --transition: all 0.3s ease;
  --border-radius: 16px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  transition: var(--transition);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  position: relative;
}

/* Login page background */
body.login-page::before {
  content: '';
  position: fixed;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100vh;
  width: auto;
  height: auto;
  background: url('../img/applebanner.png') no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  margin-top: -100px;
}

/* Dashboard page background */
body.dashboard-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/apple.jpeg') repeat;
  background-size: 200px;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

@keyframes subtleFloat {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200px 200px;
  }
}

/* Specific styling for login page */
body.login-page {
  height: 100vh;
  justify-content: center;
  overflow: hidden;
}

/* Dashboard specific styling */
body.dashboard-page {
  height: auto;
  justify-content: flex-start;
  padding-top: 1rem;
  overflow-y: auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 2rem;
  padding: 1.8rem 2.5rem;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  box-shadow: 
    6px 6px 12px rgba(163, 177, 198, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.dashboard-header::before {
  content: '';
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: url('../img/apple.jpeg') no-repeat center center;
  background-size: contain;
  opacity: 0.8;
  border-radius: 50%;
  box-shadow: 
    2px 2px 4px var(--shadow-dark),
    -2px -2px 4px var(--shadow-light);
}

.dashboard-header h1 {
  padding-left: 70px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-content {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

h1 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 600;
}

.glass-card {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

button {
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    3px 3px 6px rgba(163, 177, 198, 0.4),
    -3px -3px 6px rgba(255, 255, 255, 0.7);
  width: auto;
  min-width: 130px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

button:hover {
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

button:active {
  box-shadow: inset 
    2px 2px 4px rgba(163, 177, 198, 0.4),
    inset -2px -2px 4px rgba(255, 255, 255, 0.7);
}

#signout {
  background: var(--bg-color);
  color: var(--danger-color);
  font-size: 14px;
  padding: 0.7rem 1.4rem;
  min-width: 110px;
}

.month-select {
  width: 300px;
  padding: 1rem 1.2rem;
  margin: 0 auto 1.5rem;
  display: block;
  border: none;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2em;
  padding-right: 3rem;
  box-shadow: inset 
    4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.month-select:hover {
  box-shadow: inset 
    5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}

.month-select:focus {
  outline: none;
  box-shadow: inset 
    6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.form-container button {
  width: 20%;
  max-width: 300px;
}

.loading {
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
}

.error {
  color: #dc3545;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 8px;
  line-height: 1.5;
}

.success {
  color: var(--success-color);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 8px;
  line-height: 1.5;
}

.password-change-notification {
  color: var(--success-color);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 8px;
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 500;
}

.password-change-form {
  margin-top: 1.5rem;
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
  position: relative;
}

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

.payroll-table thead,
.payroll-table thead tr {
  background: rgb(0, 100, 65);
  color: white;
}

.payroll-table th,
.payroll-data-table th,
.payroll-table td,
.payroll-data-table td {
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

.payroll-table th,
.payroll-data-table th {
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 80, 52, 0.8);
  color: white;
  background: #006441;
}

.payroll-table tbody tr:hover {
  background: rgba(0, 100, 65, 0.05);
}

.payroll-table tbody tr:last-child td {
  border-bottom: none;
}

.payroll-table tfoot td {
  border-top: 2px solid rgba(0, 80, 52, 0.8);
  font-weight: bold;
}

.amount {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
  text-align: right;
  font-weight: 500;
}

.total-row {
  font-weight: 600;
  background: var(--bg-color);
  box-shadow: 
    5px 5px 10px var(--shadow-dark),
    -5px -5px 10px var(--shadow-light);
}

.metric-title {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
}

#selectedMonthData {
  margin-top: 1.5rem;
}

.payroll-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.payroll-data-table tbody tr:hover {
  background: rgba(0, 100, 65, 0.05);
}

.payroll-data-table tbody tr:last-child td {
  border-bottom: none;
}

.payroll-data-table tfoot td {
  border-top: 2px solid rgba(0, 80, 52, 0.8);
  font-weight: bold;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 3rem 2.5rem 2.5rem;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  box-shadow: 
    6px 6px 12px rgba(163, 177, 198, 0.4),
    -6px -6px 12px rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: url('../img/apple.jpeg') no-repeat center center;
  background-size: contain;
  border-radius: 50%;
}

.login-container h2 {
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
}

.login-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: rgb(0, 100, 65);
  border-radius: 2px;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 1rem;
  box-shadow: inset 
    4px 4px 8px var(--shadow-dark),
    inset -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  box-shadow: inset 
    6px 6px 12px var(--shadow-dark),
    inset -6px -6px 12px var(--shadow-light);
}

.input-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.login-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgb(0, 100, 65);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.sign-out-btn {
  background: transparent;
  color: var(--danger-color);
  font-size: 0.9rem;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  transition: var(--transition);
}

.sign-out-btn:hover {
  color: white;
  background: var(--danger-color);
  transform: translateY(-2px);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-footer a:hover {
  color: var(--accent-hover);
}

#payrollTable {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

#payrollTable thead {
  background: rgb(0, 100, 65);
  color: white;
}

#payrollTable th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 80, 52, 0.8);
  color: white;
}

#payrollTable td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(163, 177, 198, 0.2);
}

#payrollTable tbody tr:hover {
  background: rgba(0, 100, 65, 0.05);
}

#payrollTable tbody tr:last-child td {
  border-bottom: none;
}

/* Style for the "No data" message */
#payrollTable tbody tr td[colspan="7"] {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

.password-requirements {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  box-shadow: inset 
    2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

.password-requirements p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Style for disabled button */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: inset 
    2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

/* Pay Period Specific Styles */
.pay-period-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: 
    -5px -5px 10px var(--shadow-light),
    5px 5px 10px var(--shadow-dark);
}

.pay-period-header {
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.period-dates {
  color: var(--accent-color);
  font-weight: 500;
}

.total-label {
  text-align: right;
  font-weight: bold;
}

.period-total {
  font-weight: bold;
  color: var(--accent-color);
}

.pay-period {
  margin-bottom: 3rem;
}

.pay-period h3 {
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  color: var(--text-primary);
  border-bottom: 2px solid rgb(0, 100, 65);
}

/* Add extra margin to the first h3 to maintain consistent spacing */
.pay-period:first-child h3 {
  margin-top: 1rem;
}

.pay-period h4 {
  margin: 1.5rem 0 1rem;
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 600;
  font-style: italic;
}

.tfoot {
  background: rgb(0, 100, 65);
  color: white;
}

.period-total-row {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgb(165, 30, 65);
  border-radius: var(--border-radius);
  text-align: left;
  font-size: 1.1rem;
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.period-total-row strong {
  color: white;
}

.table-header .header-cell {
  text-align: center;
  padding: 0.8rem 1rem;
  color: white;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px; /* Space for footer */
}

.table-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0, 100, 65);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  text-align: left;
}

.table-footer .footer-total {
  font-weight: 600;
  text-align: left;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(0, 100, 65);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  padding: 4px 8px;
  font-size: 0.8rem;
  min-width: unset;
  box-shadow: none;
}

.password-toggle:hover {
  background: rgb(0, 120, 78);
  color: white;
}

.password-field-wrapper {
  position: relative;
  width: 100%;
}

.btn-proceed {
  background: rgb(0, 100, 65) !important;
  color: white !important;
  transition: all 0.3s ease;
}

.btn-proceed:hover {
  background: rgb(0, 120, 78) !important;
  transform: translateY(-2px);
}

.btn-proceed:active {
  transform: translateY(1px);
}

.forgot-password-link {
  display: block;
  text-align: right;
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  margin-top: 8px;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

.secondary-btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.password-requirements {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
}

.password-requirements p {
  margin: 0 0 10px 0;
  color: #666;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  margin: 5px 0;
  color: #666;
}

/* Utility Classes */
.hidden {
  display: none;
}

/* Button Styles */
.signout-btn {
  max-width: 150px;
}

/* Link Styles */
.forgot-password-link {
  color: rgb(0, 100, 65);
  margin-top: 1rem;
}

/* Form Labels */
.centered-label {
  text-align: center;
  display: block;
  line-height: 1.8;
}

/* Error and Success Messages */
.error,
.success {
  display: none;
}

/* Message container styles */
.message-container {
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 400px;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 
    4px 4px 8px rgba(163, 177, 198, 0.4),
    -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.message-container h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.message-container p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
} 
