/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary-color: #667eea;
  --primary-hover: #764ba2;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #8b5cf6;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Content */
.main-content {
  flex: 1;
  padding-bottom: 40px;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 15px 30px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-btn i {
  font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cards */
.card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

.card h2 {
  color: var(--text-primary);
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card h3 {
  color: var(--text-primary);
  margin: 25px 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Hours Entry */
.hours-entry {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f8fafc;
  transition: var(--transition);
}

.hours-entry:hover {
  border-color: var(--primary-color);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #475569;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-cancel {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-cancel:hover {
  background: #e5e7eb;
  color: #374151;
  transform: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Old upload area styles removed - now using ChatGPT-style interface */

/* File Info */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: #f1f5f9;
  border-radius: var(--border-radius);
  margin: 20px 0;
  border: 1px solid var(--border-color);
}

.file-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-details i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.file-name {
  font-weight: 500;
  color: var(--text-primary);
}

.file-size {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--error-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition);
}

.btn-remove:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

/* File Processing Modal */
.processing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.processing-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  padding: 40px 60px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.processing-modal .modal-content p {
  margin: 20px 0 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Classification Modal */
.classification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.classification-modal .modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.classification-modal .modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  text-align: left;
  z-index: 1;
}

.classification-modal h3 {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.classification-modal p {
  margin: 0 0 30px 0;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
}

.classification-options {
  margin-bottom: 30px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-actions .btn {
  padding: 12px 24px;
  font-size: 16px;
}

/* Results */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

/* Payslip Styles */
.payslip {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.payslip-header {
  background: var(--primary-gradient);
  color: white;
  padding: 25px;
  text-align: center;
}

.payslip-body {
  padding: 30px;
}

.employee-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: var(--border-radius);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.info-value {
  font-weight: 500;
  color: var(--text-primary);
}

.pay-breakdown {
  margin-bottom: 30px;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.pay-table th,
.pay-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pay-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-table .amount {
  text-align: right;
  font-weight: 500;
}

.pay-summary {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  margin-top: 30px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-row:last-child {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 15px;
  margin-top: 15px;
}

/* Visual separation for payslip sections */
.payslip-summary-section {
  margin-top: 30px;
  border-top: 3px solid #007bff;
  padding-top: 20px;
  background-color: #f8f9fa;
}

.payslip-breakdown-section {
  margin-top: 20px;
  background-color: #f8f9fa;
}

.payslip-summary-section .section-header,
.payslip-breakdown-section .section-header {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  margin: -20px -15px 15px -15px;
  font-weight: bold;
}

/* Ensure the summary and breakdown sections have some internal padding */
.payslip-summary-section,
.payslip-breakdown-section {
  padding: 20px 15px;
  border-radius: 5px;
}

/* Error Messages */
.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 15px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-close {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Schedule Interface Styles */
.schedule-help {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  background-color: #e0f2fe;
  padding: 12px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.schedule-container {
  background-color: #f8fafc;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 20px 0;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.schedule-header h4 {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.schedule-table-container {
  overflow-x: auto;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  min-width: 800px;
}

.schedule-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-table th:last-child {
  border-right: none;
}

.schedule-table td {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  vertical-align: middle;
}

.schedule-table td:last-child {
  border-right: none;
}

.schedule-table tbody tr:hover {
  background-color: #f1f5f9;
}

.schedule-table input[type="time"],
.schedule-table input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 0;
}

.schedule-table input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.day-cell {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
}

.day-cell.weekend {
  color: var(--error-color);
  background-color: rgba(239, 68, 68, 0.05);
}

.day-cell.holiday {
  color: var(--warning-color);
  background-color: rgba(245, 158, 11, 0.05);
}

.date-cell {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-width: 90px;
}

.hours-cell {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  min-width: 60px;
}

.hours-cell.overtime {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.hours-cell.penalty {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-color);
}

.actions-cell {
  text-align: center;
  min-width: 80px;
}

.btn-clear-day {
  background: none;
  border: none;
  color: var(--error-color);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-clear-day:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.schedule-summary {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.summary-item {
  background-color: white;
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item.penalty {
  background-color: rgba(239, 68, 68, 0.05);
  border-left: 4px solid var(--error-color);
}

.summary-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.summary-item.penalty .summary-value {
  color: var(--error-color);
}

/* Interactive Time Picker Styles */
.time-picker-container {
  position: relative;
  min-width: 160px;
}

.time-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input {
  flex: 1;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 10px 12px;
  font-weight: 500;
  min-height: 40px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.time-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: #f0f9ff;
}

.time-input:hover {
  border-color: var(--primary-color);
  background-color: #f8fafc;
}

.time-display-label {
  position: absolute;
  top: -8px;
  left: 12px;
  background: white;
  padding: 0 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.time-slider-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-slider-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.time-slider-btn:active {
  transform: translateY(0);
}

.time-slider-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 20px;
  display: none;
  margin-top: 5px;
}

.time-slider-container.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

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

.time-slider-header {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.time-slider-live-display {
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
  padding: 10px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #e0f2fe;
}

.time-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #1e293b 0%, #3b82f6 25%, #10b981 50%, #f59e0b 75%, #ef4444 100%);
  outline: none;
  cursor: pointer;
  margin: 15px 0;
  transition: var(--transition);
}

.time-slider:hover {
  height: 10px;
}

.time-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.time-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.time-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-color);
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.time-quick-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.time-quick-btn {
  padding: 8px 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  color: var(--text-primary);
}

.time-quick-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-quick-btn:active {
  transform: translateY(0);
}

.time-slider-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-time-action {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-time-clear {
  background: #fee2e2;
  color: #dc2626;
}

.btn-time-clear:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

.btn-time-done {
  background: var(--primary-color);
  color: white;
}

.btn-time-done:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.time-slider-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.btn-time-action {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-time-clear {
  background: var(--error-color);
  color: white;
}

.btn-time-done {
  background: var(--primary-color);
  color: white;
}

/* Recall Entry Styles */
.recall-container {
  width: 100%;
}

.recall-count {
  width: 60px;
  padding: 8px;
  margin-bottom: 10px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
}

.recall-count:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.recall-entries {
  display: none;
}

.recall-entry {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.recall-header {
  margin-bottom: 10px;
}

.recall-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.recall-times {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.recall-time-picker {
  position: relative;
  min-width: 140px;
  flex: 1;
}

.recall-time-picker .time-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recall-time-picker .time-input {
  flex: 1;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 8px 10px;
  font-weight: 500;
  min-height: 36px;
  transition: var(--transition);
  font-size: 0.85rem;
}

.recall-time-picker .time-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background-color: #f0f9ff;
}

.recall-time-picker .time-input:hover {
  border-color: var(--primary-color);
  background-color: #f8fafc;
}

.recall-time-picker .time-display-label {
  position: absolute;
  top: -6px;
  left: 10px;
  background: white;
  padding: 0 3px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recall-time-picker .recall-slider-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recall-time-picker .recall-slider-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.recall-time-slider-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 15px;
  display: none;
  margin-top: 5px;
}

.recall-time-slider-container.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.recall-time-slider-container .time-slider-header {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Manual Entry Recall Styles */
.recall-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.recall-counter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recall-counter-group .input-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 50px;
}

.recalls-count {
  width: 50px;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
}

.recalls-count:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.recall-times-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recall-time-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recall-time-group .input-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.recall-time-group .time-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.recall-start-time,
.recall-end-time {
  width: 65px;
  padding: 4px 6px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-size: 0.8rem;
  text-align: center;
}

.recall-start-time:focus,
.recall-end-time:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.recall-time-group .time-separator {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0 2px;
}

/* Professional Payslip Styles */
.payslip-professional {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border: 2px solid #000;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payslip-header-professional {
  background: #f8f9fa;
  padding: 25px;
  border-bottom: 2px solid #000;
  text-align: center;
}

.payslip-header-professional h2 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #4a90e2;
}

.payslip-employee-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.payslip-employee-info p {
  margin: 5px 0;
  font-size: 0.95rem;
}

.payslip-body-professional {
  padding: 0;
}

.payslip-section {
  border-bottom: 2px solid #000;
}

.payslip-section:last-child {
  border-bottom: 2px solid #007bff;
}

.payslip-table-professional {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.payslip-table-professional th {
  background: #f8f9fa;
  padding: 10px 15px;
  text-align: left;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  font-weight: bold;
  font-size: 0.85rem;
}

.payslip-table-professional th:last-child {
  border-right: none;
}

.payslip-table-professional td {
  padding: 8px 15px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.payslip-table-professional td:last-child {
  border-right: none;
}

.payslip-table-professional .amount-col {
  text-align: right;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
}

.payslip-table-professional .rate-col {
  text-align: right;
  font-weight: normal;
  font-family: 'Montserrat', sans-serif;
}

.payslip-totals {
  background: #f8f9fa;
  font-weight: bold;
}

.payslip-totals td {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.payslip-final-total {
  background: #f8f9fa !important;
  border-top: 2px solid #007bff !important;
  font-weight: 600 !important;
}

.payslip-final-total td {
  padding: 15px 12px !important;
  font-size: 1.1em;
}

[data-net-pay] {
  color: #28a745 !important;
  font-weight: 700 !important;
  font-size: 1.1em;
}

.section-header {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 4px 4px 0 0;
}

/* Hero Section - ChatGPT Style */
.hero-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

/* ChatGPT-Style Upload Interface */
.upload-hero-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.chatgpt-upload-container {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto !important;
  position: relative;
}

.chatgpt-upload-field {
  width: 100%;
  height: 56px;
  background: white;
  border: 1px solid #c4c4c4;
  border-radius: 16px;
  font-size: 16px;
  color: #374151;
  transition: border-color 0.2s ease;
  cursor: text;
  position: relative;
  box-sizing: border-box;
  outline: none;
  padding: 0 60px 0 20px;
  display: flex;
  align-items: center;
}

.chatgpt-upload-field:hover {
  border-color: #999999;
}

.chatgpt-upload-field:focus-within {
  border-color: #999999;
}

.chatgpt-upload-field.dragover {
  border-color: #10a37f;
  background: #f0f9ff;
}

.upload-text-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none !important;
  outline: none !important;
  color: #374151;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0 !important;
}

.upload-text-input:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.upload-text-input:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.upload-text-input::placeholder {
  color: transparent;
}

.upload-placeholder {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.upload-placeholder.hidden {
  opacity: 0;
}

.upload-placeholder.typing {
  animation: typing 0.4s ease-in-out;
}

@keyframes typing {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.upload-attach-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.upload-attach-btn:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.upload-attach-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.upload-attach-btn i {
  font-size: 16px;
  font-weight: 600;
}

/* Generate Payslip Button */
.generate-payslip-btn {
  width: 100%;
  max-width: 200px;
  margin: 16px auto 0;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.generate-payslip-btn.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.generate-payslip-btn.enabled {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.generate-payslip-btn.enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.generate-payslip-btn.enabled:active {
  transform: translateY(0);
}

/* File formats hint */
.upload-formats-hint {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #9ca3af;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.chatgpt-upload-field:hover .upload-formats-hint {
  opacity: 1;
}

/* Loading state for attach button */
.upload-attach-btn.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .chatgpt-upload-field {
    background: #2d2e3f;
    border-color: #565869;
    color: #e5e7eb;
  }
  
  .chatgpt-upload-field:hover,
  .chatgpt-upload-field:focus-within {
    border-color: #6b7280;
  }

  .chatgpt-upload-field.dragover {
    border-color: #10a37f;
    background: #1f2937;
  }

  .upload-text-input {
    color: #e5e7eb;
  }

  .upload-text-input::placeholder {
    color: #9ca3af;
  }

  .upload-placeholder {
    color: #9ca3af;
  }

  .upload-attach-btn {
    color: #9ca3af;
  }

  .upload-attach-btn:hover {
    background: #374151;
    color: #d1d5db;
  }

  .generate-payslip-btn.disabled {
    background: #374151;
    color: #6b7280;
  }

  .upload-formats-hint {
    background: rgba(45, 46, 63, 0.95);
    color: #9ca3af;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .chatgpt-upload-container {
    max-width: 600px;
    margin: 0 20px;
  }

  .chatgpt-upload-field {
    height: 52px;
    border-radius: 14px;
    padding: 0 55px 0 18px;
    font-size: 15px;
  }
  
  .upload-placeholder {
    left: 18px;
    font-size: 15px;
  }

  .upload-text-input {
    font-size: 15px;
  }
  
  .upload-attach-btn {
    width: 26px;
    height: 26px;
    right: 14px;
  }

  .upload-attach-btn i {
    font-size: 15px;
  }

  .upload-formats-hint {
    font-size: 11px;
    bottom: -30px;
  }

  .generate-payslip-btn {
    max-width: 180px;
    padding: 10px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .chatgpt-upload-container {
    max-width: 100%;
    margin: 0 16px;
  }
  
  .chatgpt-upload-field {
    height: 48px;
    border-radius: 12px;
    padding: 0 50px 0 16px;
    font-size: 14px;
  }
  
  .upload-placeholder {
    left: 16px;
    font-size: 14px;
  }

  .upload-text-input {
    font-size: 14px;
  }
  
  .upload-attach-btn {
    width: 24px;
    height: 24px;
    right: 12px;
  }

  .upload-attach-btn i {
    font-size: 14px;
  }

  .generate-payslip-btn {
    max-width: 160px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Legacy upload styles - keeping for compatibility */
.file-upload-area {
  display: none; /* Hide old style */
}

/* File Selected State */
.file-selected {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.selected-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.selected-file-info i {
  font-size: 24px;
  color: #667eea;
}

.file-details {
  flex: 1;
  text-align: left;
}

.file-name {
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 16px;
}

.file-size {
  display: block;
  font-size: 14px;
  color: #6b7280;
}

.btn-icon-remove {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-remove:hover {
  background: #ef4444;
  color: white;
}

.btn-process {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-process:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-process:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Alternative Option */
.alternative-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.divider-text {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 0 20px;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: #e5e7eb;
}

.divider-text::before {
  right: 100%;
}

.divider-text::after {
  left: 100%;
}

.btn-secondary-option {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-option:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}

/* Modal Processing State */
.modal-processing {
  text-align: center;
  padding: 40px 20px;
}

.modal-processing h3 {
  margin: 20px 0 10px 0;
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
}

.modal-processing p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* Manual Section */
.manual-section {
  animation: slideInFromRight 0.3s ease-out;
}

.section-header-manual {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.btn-back {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Error Container */
.error-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.error-content {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.1);
}

.error-content i {
  color: #ef4444;
  font-size: 20px;
}

.error-text {
  flex: 1;
  color: #7f1d1d;
  font-size: 14px;
}

.btn-close-error {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-close-error:hover {
  color: #374151;
  background: #f3f4f6;
}

/* Animations */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  .logo h1 {
    font-size: 2.2rem;
  }

  .logo i {
    font-size: 2rem;
  }

  .card {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons {
    width: 100%;
  }

  .action-buttons .btn {
    flex: 1;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 10px;
  }

  .employee-info {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .pay-table {
    font-size: 0.9rem;
  }

  .pay-table th,
  .pay-table td {
    padding: 8px;
  }

  .schedule-header {
    flex-direction: column;
    text-align: center;
  }
  
  .schedule-table {
    min-width: 600px;
    font-size: 0.8rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 6px 4px;
  }
  
  .schedule-summary {
    grid-template-columns: 1fr;
  }
  
  .summary-item {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .tab-navigation {
    flex-direction: column;
    gap: 0;
  }

  .tab-btn {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
  }

  .tab-btn:last-child {
    border-bottom: none;
  }

  .upload-area {
    padding: 40px 15px;
  }

  .upload-content i {
    font-size: 2.5rem;
  }

  .upload-content h3 {
    font-size: 1.1rem;
  }
  
  .schedule-container {
    padding: 15px;
  }
  
  .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .schedule-table {
    min-width: 500px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .tab-navigation,
  .footer,
  .action-buttons,
  .btn {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #000;
  }

  .payslip {
    page-break-inside: avoid;
  }
}

/* Animation for smooth transitions */
.tab-content {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Shifts Editor Styles */
.shifts-editor {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.shifts-editor h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.2em;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

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

.shifts-edit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.shifts-edit-table th {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.shifts-edit-table td {
  border: 1px solid #dee2e6;
  padding: 8px;
  vertical-align: middle;
}

.shifts-edit-table tr:nth-child(even) {
  background: #f8f9fa;
}

.shifts-edit-table tr:hover {
  background: #e3f2fd;
}

.shift-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  background: white;
}

.shift-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.date-input {
  min-width: 130px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 2px;
  background: transparent;
}

.date-input:focus {
  background-color: #f8f9fa;
}

.hours-input {
  width: 80px;
  text-align: center;
}

.rate-type {
  font-weight: 500;
  color: #495057;
}

.amount {
  font-weight: 600;
  color: #28a745;
  text-align: right;
}

.btn-add-shift {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-add-shift:hover {
  background: #218838;
}

.btn-remove-shift {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.btn-remove-shift:hover {
  background: #c82333;
}

/* Responsive design for shifts table */
@media (max-width: 768px) {
  .shifts-edit-table {
    font-size: 12px;
  }
  
  .shifts-edit-table th,
  .shifts-edit-table td {
    padding: 6px 4px;
  }
  
  .shift-input {
    padding: 4px 6px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
  }
  
  .hours-input {
    width: 60px;
  }
  
  .btn-remove-shift {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Classification Section */
.classification-section {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.classification-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.classification-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  color: #374151;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.classification-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.classification-select:hover {
  border-color: #9ca3af;
}

/* Shift Breakdown Styles */
.shift-detail {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
}

.shift-detail h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

.shift-breakdown-table {
  font-size: 14px;
}

.shift-breakdown-table th,
.shift-breakdown-table td {
  padding: 8px 12px;
}

.shift-total {
  border-top: 2px solid var(--primary-color);
  background-color: #f8f9fa;
}

/* Consolidated Shift Breakdown Table */
.shift-breakdown-consolidated {
  margin: 20px 0;
}

.shift-breakdown-consolidated th {
  background: none;
  color: black;
  font-weight: bold;
  text-transform: none;
  letter-spacing: normal;
}

.shift-breakdown-consolidated tr:nth-child(even) {
  background: rgba(102, 126, 234, 0.05);
}

.shift-breakdown-consolidated tr:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* Enhanced CPD Link Hover Effect */
@keyframes bounce-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cpd-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  transform-origin: center !important;
}

.cpd-link:hover {
  color: #ffde5c !important;
  font-weight: bold !important;
  animation: bounce-scale 0.4s ease-out !important;
}

/* NMHS Payslip Format Enhancements */
.nmhs-earnings-table {
  border: 2px solid #4a90e2;
}

.nmhs-earnings-table th {
  background-color: #e6f2ff;
  font-weight: bold;
  padding: 10px 8px;
  border: 1px solid #4a90e2;
}

.nmhs-earnings-table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.nmhs-earnings-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.nmhs-earnings-table .payslip-totals {
  background-color: #fffacd !important;
  font-weight: bold;
}

.payslip-header-professional h2 {
  color: #4a90e2;
  text-align: center;
  margin-bottom: 15px;
}

.payslip-employee-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

/* Monospace font for amounts to ensure alignment */
.amount-col {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

/* Print styles for the NMHS format */
@media print {
  .nmhs-earnings-table {
    border: 2px solid #000;
  }
  
  .nmhs-earnings-table th {
    background-color: #f0f0f0 !important;
    border: 1px solid #000;
  }
  
  .nmhs-earnings-table td {
    border: 1px solid #000;
  }
}

/* On-Call Toggle Button */
.btn-toggle-oncall {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 auto;
}

.btn-toggle-oncall:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.oncall-inputs {
  margin-top: 8px;
  flex-direction: column;
  gap: 4px;
}

.oncall-cell {
  text-align: center;
  width: 120px;
  min-width: 120px;
}

/* Date Column Width Reduction */
.date-cell {
  width: 100px;
  min-width: 100px;
}

.date-input {
  width: 100%;
  font-size: 11px;
  padding: 4px 6px;
}

/* Work Period Side-by-Side Layout */
.work-period-cell {
  width: 180px;
  min-width: 180px;
  font-family: 'Montserrat', sans-serif;
}

.time-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.start-time, .end-time {
  width: 70px;
  font-size: 11px;
  padding: 4px 6px;
}

.time-separator {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Shift Total Row Styling */
.shift-total-row {
  background-color: inherit;
  font-weight: normal;
}

.shift-total-row td {
  border-bottom: 2px solid #ccc;
  padding-bottom: 8px;
}

.shift-separator {
  border-bottom: 3px solid #ddd !important;
}

.shift-separator td {
  border-bottom: 3px solid #ddd !important;
  padding-bottom: 12px !important;
}