/* ===== Attendance Manual Page Styles ===== */

/* Page Header */
.attendance-manual .manual-page-header {
  margin-bottom: 2rem;
  padding: 2rem 0 1rem 0;
}

.attendance-manual .manual-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #4a4a4a;
  background: linear-gradient(135deg, #8bc34a, #6a9e34);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark-mode .attendance-manual .manual-page-title {
  background: linear-gradient(135deg, #ecf0f1, #a8d85f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.attendance-manual .manual-page-subtitle {
  font-size: 1.1rem;
  color: #546e7a;
  margin: 0;
  font-weight: 400;
}

html.dark-mode .attendance-manual .manual-page-subtitle {
  color: #95a5a6;
}

/* Navigation Tabs - Fixed to match other attendance pages */
.attendance-manual .manual-inner-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.dark-mode .attendance-manual .manual-inner-tabs {
  background: #2a2a2a;
}

/* Tab Button - Flat color secondary UI control */
.attendance-manual .manual-tab-button {
  flex: 1;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Sora', system-ui, sans-serif;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.attendance-manual .manual-tab-button i {
  font-size: 1.125rem;
}

.attendance-manual .manual-tab-button:hover {
  background: white;
  color: #4a6e1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attendance-manual .manual-tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
  transform: translateY(-1px);
}

.attendance-manual .manual-tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

html.dark-mode .attendance-manual .manual-tab-button {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark-mode .attendance-manual .manual-tab-button:hover {
  background: #1a1a1a;
  color: #a5d461;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.dark-mode .attendance-manual .manual-tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
}

html.dark-mode .attendance-manual .manual-tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

/* Main Content Container */
.attendance-manual .manual-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Employee Selection Section */
.attendance-manual .manual-select-section {
  margin-bottom: 2rem;
}

.attendance-manual .manual-section-header {
  margin-bottom: 1rem;
}

.attendance-manual .manual-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

html.dark-mode .attendance-manual .manual-section-title {
  color: #ecf0f1;
}

.attendance-manual .manual-select-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

html.dark-mode .attendance-manual .manual-select-card {
  background: #2a2a2a;
  border-color: #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.attendance-manual .manual-select-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.attendance-manual .manual-select-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

html.dark-mode .attendance-manual .manual-select-label {
  color: #ecf0f1;
}

.attendance-manual .manual-select-label i {
  color: #8bc34a;
  font-size: 1.25rem;
}

html.dark-mode .attendance-manual .manual-select-label i {
  color: #8bc34a;
}

.attendance-manual .manual-employee-dropdown {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  font-size: 1.05rem;
  color: #2c3e50;
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2376a12b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

html.dark-mode .attendance-manual .manual-employee-dropdown {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: #ecf0f1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238bc34a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

.attendance-manual .manual-employee-dropdown:hover {
  border-color: #8bc34a;
}

html.dark-mode .attendance-manual .manual-employee-dropdown:hover {
  border-color: #8bc34a;
}

.attendance-manual .manual-employee-dropdown:focus {
  outline: none;
  border-color: #8bc34a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
  background: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2376a12b' d='M6 3L1 8h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

html.dark-mode .attendance-manual .manual-employee-dropdown:focus {
  border-color: #8bc34a;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
  background: #1a1a1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238bc34a' d='M6 3L1 8h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
}

/* Clock Action Buttons */
.attendance-manual .manual-actions-section {
  margin-bottom: 2.5rem;
}

.attendance-manual .manual-clock-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.attendance-manual .manual-clock-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.attendance-manual .manual-clock-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.attendance-manual .manual-clock-btn:hover::before {
  opacity: 1;
}

.attendance-manual .manual-clock-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.attendance-manual .manual-clock-btn:disabled:hover {
  transform: none;
}

.attendance-manual .manual-clock-btn.clock-in {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.attendance-manual .manual-clock-btn.clock-in:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

.attendance-manual .manual-clock-btn.clock-out {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.attendance-manual .manual-clock-btn.clock-out:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.attendance-manual .manual-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  flex-shrink: 0;
}

.attendance-manual .manual-btn-icon i {
  font-size: 1.75rem;
}

.attendance-manual .manual-btn-content {
  text-align: left;
  flex: 1;
}

.attendance-manual .manual-btn-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.attendance-manual .manual-btn-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Employee Status Section */
.attendance-manual .manual-status-section {
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.4s ease;
}

.attendance-manual .manual-status-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

html.dark-mode .attendance-manual .manual-status-card {
  background: #2a2a2a;
  border-color: #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.attendance-manual .manual-status-details p {
  margin: 0 0 0.75rem 0;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 1rem;
  color: #2c3e50;
}

html.dark-mode .attendance-manual .manual-status-details p {
  background: #1a1a1a;
  color: #ecf0f1;
}

.attendance-manual .manual-status-details strong {
  color: #8bc34a;
  font-weight: 600;
}

html.dark-mode .attendance-manual .manual-status-details strong {
  color: #8bc34a;
}

/* Recent Activity Section */
.attendance-manual .manual-activity-section {
  margin-bottom: 2rem;
}

.attendance-manual .manual-activity-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

html.dark-mode .attendance-manual .manual-activity-card {
  background: #2a2a2a;
  border-color: #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.attendance-manual .manual-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #94a3b8;
}

.attendance-manual .manual-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.attendance-manual .manual-empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* Manual page specific table styles */
/* Tables now use standardized component styles from /css/components/table.css */

/* Status badges for manual page */
.attendance-manual .manual-status-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.attendance-manual .manual-status-badge.status-in {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.attendance-manual .manual-status-badge.status-out {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

html.dark-mode .attendance-manual .manual-status-badge.status-in {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

html.dark-mode .attendance-manual .manual-status-badge.status-out {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .attendance-manual .manual-page-title {
    font-size: 2rem;
  }

  .attendance-manual .manual-clock-actions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .attendance-manual .manual-clock-btn {
    padding: 1.5rem;
  }

  .attendance-manual .manual-btn-icon {
    width: 50px;
    height: 50px;
  }

  .attendance-manual .manual-btn-icon i {
    font-size: 1.5rem;
  }

  .attendance-manual .manual-btn-title {
    font-size: 1.1rem;
  }

  .attendance-manual .modern-table {
    font-size: 0.85rem;
  }

  .attendance-manual .modern-table thead th,
  .attendance-manual .modern-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .attendance-manual .manual-page-title {
    font-size: 1.75rem;
  }

  .attendance-manual .manual-page-subtitle {
    font-size: 1rem;
  }

  .attendance-manual .manual-select-card,
  .attendance-manual .manual-status-card,
  .attendance-manual .manual-activity-card {
    padding: 1.5rem;
  }
}

