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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom right, #eff6ff 0%, #ffffff 50%, #dbeafe 100%);
    background-attachment: fixed;
    color: #1e293b;
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(30, 58, 138, 0.15);
    display: flex;
    flex-direction: column;
}

/* Collapsed sidebar */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h2 {
    justify-content: center;
}

.sidebar.collapsed .sidebar-header h2 span {
    display: none;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar.collapsed .nav-dropdown-toggle span {
    display: none;
}

.sidebar.collapsed .nav-dropdown-arrow {
    display: none;
}

.sidebar.collapsed .nav-dropdown {
    display: none !important;
}

.sidebar.collapsed .nav-dropdown-parent {
    justify-content: center;
}

.sidebar.collapsed .nav-dropdown-toggle {
    justify-content: center;
    padding: 0.875rem 1rem;
}

/* User Info Section */
.user-info-section {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Collapsed user section */
.sidebar.collapsed .user-info-section {
    padding: 0.5rem;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-actions {
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar.collapsed .user-action-btn span {
    display: none;
}

.sidebar.collapsed .user-action-btn {
    padding: 0.5rem;
    justify-content: center;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    font-weight: 500;
}

/* Prevent general nav-item hover on dropdown parents */
.nav-dropdown-parent:hover {
    background-color: transparent;
    border-left-color: transparent;
}

.nav-dropdown-parent:hover .nav-dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

/* Dropdown Navigation */
.nav-dropdown-parent {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dropdown-parent.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: white;
}

.nav-dropdown-parent.active .nav-dropdown-toggle {
    font-weight: 500;
}

.nav-dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.nav-dropdown-parent.open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-dropdown-parent.open .nav-dropdown {
    max-height: 300px;
}

.nav-dropdown-item {
    padding-left: 3rem !important;
    border-left: none !important;
    font-size: 0.9rem;
}

.nav-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-collapsed {
    margin-left: 70px;
}

/* Header */
.header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e293b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
}

.search-box input {
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    width: 300px;
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    width: 500px;
}

.search-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0.5rem 0.5rem 0;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.search-dropdown-header {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-result-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:active {
    background: #f1f5f9;
}

.search-result-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.search-result-ref {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.search-result-status {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.search-result-name {
    font-weight: 500;
    color: #475569;
}

.search-result-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-result-detail {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.search-result-detail i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #cbd5e1;
}

.search-no-results p {
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

.search-no-results small {
    font-size: 0.75rem;
    color: #cbd5e1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.view-all {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-all:hover {
    color: #2563eb;
    text-decoration: underline;
}

.card-content {
    padding: 1.5rem;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #64748b;
    font-size: 0.875rem;
}

/* Dashboard Controls */
.dashboard-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.dashboard-controls .year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-controls .year-selector label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.revenue-card {
    grid-column: 1;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .revenue-card {
        grid-column: 1;
    }
}

/* Monthly Revenue Breakdown */
.monthly-breakdown {
    padding: 0;
}

.yearly-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    text-align: center;
}

.yearly-summary h4 {
    margin: 0 0 1rem 0;
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 600;
}

.summary-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.summary-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

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

.revenue-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.revenue-table thead {
    background: #f8fafc;
}

.revenue-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}

.revenue-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.revenue-table tbody tr:hover {
    background: #f8fafc;
}

.month-cell {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
}

.amount-cell {
    text-align: right;
    font-weight: 500;
    color: #1e293b;
    min-width: 120px;
}

.highlight-yellow {
    background: linear-gradient(135deg, hsl(48, 96%, 89%) 0%, #fde68a 100%);
    color: #92400e;
    font-weight: 700;
}

.highlight-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    font-weight: 700;
}

.highlight-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    font-weight: 700;
}

.highlight-red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    font-weight: 700;
}

/* Booking List */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(to right, #eff6ff, #ffffff);
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.booking-item:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.booking-info h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.booking-info p {
    color: #64748b;
    font-size: 0.875rem;
}

.booking-amount {
    font-weight: 600;
    color: #059669;
}

/* Month/Year Selector */
.month-year-selector {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.year-selector label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.month-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.month-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.month-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.month-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.month-btn.all-months {
    grid-column: span 2;
    background: #f1f5f9;
    color: #475569;
}

.month-btn.all-months:hover {
    background: #e2e8f0;
}

.month-btn.all-months.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-select,
.filter-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table */
.table-container {
    overflow-x: auto;
}

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

.bookings-table th,
.bookings-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.bookings-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.bookings-table td {
    font-size: 0.875rem;
}

.bookings-table td:nth-child(3),
.bookings-table td:nth-child(4) {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookings-table td:nth-child(9),
.bookings-table td:nth-child(10),
.bookings-table td:nth-child(11) {
    text-align: right;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-checked-in {
    background: #dbeafe;
    color: #1e40af;
}

.status-checked-out {
    background: #e5e7eb;
    color: #374151;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 1rem;
    min-height: 120px;
    position: relative;
}

.calendar-day.other-month {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-day.today {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.calendar-day-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-event:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.calendar-event.arrival {
    background: #059669;
}

.calendar-event.departure {
    background: #dc2626;
}

.calendar-event.ongoing {
    background: #f59e0b;
    color: white;
}

/* Reports */
.reports-header {
    margin-bottom: 2rem;
}

.report-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.report-content {
    min-height: 400px;
}

/* Settings */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Forms */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:required:invalid {
    border-color: #ef4444;
}

.form-input[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

/* Form help text styling */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Select dropdown styling */
.form-input select,
select.form-input {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    appearance: none;
    cursor: pointer;
}

/* Guest Type Selector */
.guest-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.radio-label input[type="radio"] {
    margin: 0;
}

/* Multiple Guests Form */
.guests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.guests-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.guest-entry {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    position: relative;
}

.guest-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.guest-entry-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.remove-guest-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-guest-btn:hover {
    background: #fecaca;
}

.guest-entry .form-row {
    margin-bottom: 0.75rem;
}

.guest-entry .form-row:last-child {
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* Modal Overlay (for password protection and other overlays) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Password Modal - smaller and centered */
#password-modal .modal-content {
    max-width: 500px;
    width: 90%;
    margin: auto;
    box-sizing: border-box;
}

#password-modal .modal-body {
    padding: 1.5rem 2rem;
}

#password-modal .modal-body p {
    margin-bottom: 1.25rem;
    color: #475569;
    line-height: 1.6;
}

#password-modal .error-message {
    display: none;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    color: #991b1b;
    margin-top: 1rem;
    font-size: 0.875rem;
}

#password-modal .error-message i {
    margin-right: 0.5rem;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Booking Details Grid (for calendar modal) */
.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: #3b82f6;
}

.detail-section p {
    margin-bottom: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

.detail-section p:last-child {
    margin-bottom: 0;
}

.detail-section p strong {
    color: #1e293b;
    font-weight: 500;
    display: inline-block;
    min-width: 140px;
}

.guests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #1e293b;
}

.guest-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.guest-nationality {
    color: #64748b;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3b82f6;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: #059669;
}

.toast.error {
    border-left-color: #dc2626;
}

.toast.warning {
    border-left-color: #d97706;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar.collapsed {
        width: 280px;
    }
    
    .main-content.sidebar-collapsed {
        margin-left: 0;
    }

    .header {
        padding: 1rem;
    }

    .page-content {
        padding: 1rem;
    }

    .search-box input {
        width: 200px;
    }

    .search-dropdown {
        width: 400px;
    }

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .month-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .month-btn.all-months {
        grid-column: span 4;
    }

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

    .bookings-table {
        font-size: 0.75rem;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 0.5rem 0.25rem;
    }

    .modal-content {
        width: 98%;
        max-width: 95vw;
        margin: 0.5rem;
    }

    /* Password modal responsive */
    #password-modal .modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0.5rem;
    }

    #password-modal .modal-header,
    #password-modal .modal-body,
    #password-modal .modal-footer {
        padding: 1rem;
    }

    .calendar-grid {
        font-size: 0.875rem;
    }

    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-box input {
        width: 100%;
    }

    .search-dropdown {
        width: calc(100vw - 2rem);
        left: -1rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

/* Booking Details View */
.booking-details-modal .modal-content {
    max-width: 1000px;
    max-height: 90vh;
}

.booking-details-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.booking-ref-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.booking-ref-section h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-ref-section h3 i {
    font-size: 1.25rem;
}

.booking-dates-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.date-badge i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.date-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-value {
    font-size: 1rem;
    font-weight: 600;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.detail-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.detail-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.detail-card-header i {
    font-size: 1.125rem;
    color: #667eea;
}

.detail-card-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.detail-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.detail-label i {
    font-size: 0.875rem;
    color: #94a3b8;
}

.detail-value {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.detail-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.detail-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.guest-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.guest-card:last-child {
    margin-bottom: 0;
}

.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.guest-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.guest-nationality {
    font-size: 0.8125rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.guest-nationality i {
    color: #94a3b8;
}

.guest-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.guest-card-body .detail-row {
    border-bottom-color: #e2e8f0;
}

.guest-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.guests-card {
    grid-column: 1 / -1;
}

.financial-card {
    grid-column: 1 / -1;
}

.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.financial-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.financial-item:hover {
    background: #f1f5f9;
}

.financial-item.highlight {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border: 2px solid #667eea30;
}

.financial-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.financial-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.financial-value.invoice-amount {
    color: #3b82f6;
}

.financial-value.deposit-amount {
    color: #059669;
}

.financial-value.balance-amount {
    font-size: 1.5rem;
}

.financial-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qbo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.notes-card {
    grid-column: 1 / -1;
}

.notes-content {
    margin: 0;
    line-height: 1.6;
    color: #475569;
    white-space: pre-wrap;
    font-size: 0.9375rem;
}

/* Responsive adjustments for booking details */
@media (max-width: 768px) {
    .booking-details-modal .modal-content {
        max-width: 95%;
        margin: 1rem auto;
    }

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

    .booking-ref-section {
        justify-content: space-between;
    }

    .booking-dates-section {
        justify-content: center;
    }

    .date-badge {
        flex: 1;
    }

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .financial-summary {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.edit {
    background: #dbeafe;
    color: #1e40af;
}

.action-btn.edit:hover {
    background: #bfdbfe;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
}

.action-btn.view {
    background: #d1fae5;
    color: #059669;
}

.action-btn.view:hover {
    background: #a7f3d0;
}

/* Guests Database Styles */
.guests-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.search-filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-filter-group input[type="text"] {
    flex: 1;
    min-width: 250px;
}

.guests-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.guests-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

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

.guests-table th,
.guests-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.guests-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.guests-table td {
    font-size: 0.875rem;
}

.guests-table td:nth-child(8) {
    text-align: right;
    font-weight: 500;
}

.guests-table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Guest Details Modal */
.guest-details {
    padding: 1rem 0;
}

.guest-details-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.guest-details-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.guest-stats-inline {
    display: flex;
    gap: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.guest-stats-inline span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-stats-inline i {
    color: #3b82f6;
}

.guest-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.info-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.bookings-history {
    margin-top: 2rem;
}

.bookings-history h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.guest-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guest-booking-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.booking-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.booking-summary strong {
    font-size: 1rem;
    color: #1e293b;
}

.booking-dates {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.booking-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Responsive adjustments for guests page */
@media (max-width: 768px) {
    .search-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-group input[type="text"],
    .search-filter-group select,
    .search-filter-group button {
        width: 100%;
    }
    
    .guest-info-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-stats-inline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .booking-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Dive Operations Styles */

/* Dive Schedule Tabs */
.dive-schedule-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dive-schedule-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(243, 244, 246, 0.5);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
}

.dive-schedule-tab:hover {
    background: rgba(243, 244, 246, 1);
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.dive-schedule-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dive-schedule-tab.active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.dive-schedule-tab i {
    font-size: 1.25rem;
}

.schedule-tab-content {
    display: none;
}

.schedule-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Payroll Tab Styles (reusing dive schedule styles) */
.payroll-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(243, 244, 246, 0.5);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
}

.payroll-tab:hover {
    background: rgba(243, 244, 246, 1);
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.payroll-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.payroll-tab.active:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.payroll-tab i {
    font-size: 1.25rem;
}

.payroll-tab-content {
    display: none;
}

.payroll-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dive-ops-header {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Schedule Planner Styles */
.schedule-planner-container {
    padding: 0;
}

/* Planner Date Selector */
.planner-date-selector-prominent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.planner-date-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planner-date-label i {
    font-size: 1.5rem;
    color: #10b981;
    animation: pulse 2s infinite;
}

.planner-date-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.planner-date-quick-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.planner-date-quick-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.planner-date-quick-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.planner-date-quick-btn.active:hover {
    transform: translateY(-2px) scale(1.02);
}

.planner-date-quick-btn i {
    font-size: 1.1rem;
}

.planner-date-picker-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.planner-date-input-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.planner-date-input-enhanced:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.planner-date-input-enhanced:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.planner-date-display-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    pointer-events: none;
}

/* Daily Overview Cards */
.planner-daily-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #3b82f6;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.arrivals-card {
    border-top-color: #10b981;
}

.departures-card {
    border-top-color: #ef4444;
}

.divers-card {
    border-top-color: #3b82f6;
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.overview-header i {
    font-size: 1.5rem;
}

.arrivals-card .overview-header i {
    color: #10b981;
}

.departures-card .overview-header i {
    color: #ef4444;
}

.divers-card .overview-header i {
    color: #3b82f6;
}

.overview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.overview-count {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.overview-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.overview-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.overview-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.overview-item strong {
    color: #374151;
    display: block;
    margin-bottom: 0.25rem;
}

.overview-item .booking-ref {
    color: #6b7280;
    font-size: 0.75rem;
}

.overview-empty {
    text-align: center;
    padding: 1.5rem;
    color: #9ca3af;
    font-style: italic;
}

/* Boat Assignment Section */
.boat-assignment-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: #3b82f6;
}

.boats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.boat-card {
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.boat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.boat-header {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    padding: 1.25rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.boat-title i {
    font-size: 1.5rem;
}

.boat-title h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.boat-diver-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.diver-count-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.diver-count-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}


.boat-team {
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Dive Schedule Section */
.boat-dive-schedule {
    padding: 1rem;
    background: #f0f9ff;
    border-bottom: 1px solid #e5e7eb;
}

.dive-schedule-header {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dive-schedule-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tiger-dive-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tiger-dive-selector label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.tiger-dive-select {
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    min-width: 120px;
}

.tiger-dive-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.dive-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dive-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border: 1px solid #dbeafe;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.dive-time-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.dive-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.dive-label.tiger-dive {
    color: #dc2626;
    font-weight: 700;
}

.dive-time-input {
    padding: 0.375rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: white;
    transition: all 0.2s ease;
    min-width: 100px;
}

.dive-time-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dive-time-input:not(:placeholder-shown) {
    background: #eff6ff;
    border-color: #3b82f6;
}

.team-role {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.team-role:last-child {
    margin-bottom: 0;
}

.team-role label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 110px;
}

.team-role i {
    color: #6b7280;
    font-size: 0.9rem;
}

.team-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-select:hover {
    border-color: #3b82f6;
}

.team-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.boat-divers {
    padding: 1rem;
}

.divers-list-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.boat-divers-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-divers {
    text-align: center;
    padding: 2rem 1rem;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
}

.assigned-diver {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.assigned-diver:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.diver-info {
    flex: 1;
}

.diver-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.diver-booking {
    font-size: 0.75rem;
    color: #6b7280;
}

.unassign-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unassign-btn:hover {
    background: #dc2626;
}

/* Unassigned Divers Pool */
.unassigned-divers-pool {
    background: white;
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.pool-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unassigned-count {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.unassigned-divers-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 600px;
    overflow-y: auto;
}

.unassigned-diver-item {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: move;
    transition: all 0.2s ease;
}

.unassigned-diver-item:hover {
    background: #fde68a;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
}

.unassigned-diver-item .diver-name {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.unassigned-diver-item .diver-booking {
    font-size: 0.75rem;
    color: #78350f;
}

.assign-to-boat {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.assign-boat-btn {
    flex: 1;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-boat-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Dive Logs Page Styles */
.dive-logs-header {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.dive-logs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.date-selector-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.date-selector-group label {
    font-weight: 500;
    color: #374151;
}

/* Weather Widget Styles */
.weather-widget {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.weather-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-location i {
    font-size: 1.25rem;
    opacity: 0.8;
    color: #374151;
}

.weather-location h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

/* Prominent Date Selector */
.weather-date-selector-prominent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.date-selector-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-selector-label i {
    font-size: 1.25rem;
    color: #3b82f6;
    animation: pulse 2s infinite;
}

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

.date-selector-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.date-quick-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.date-quick-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.date-quick-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.date-quick-btn.active:hover {
    transform: translateY(-2px) scale(1.02);
}

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

.date-picker-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.weather-date-input-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.weather-date-input-enhanced:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.weather-date-input-enhanced:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.date-display-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    pointer-events: none;
}

.btn-icon-refresh {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-icon-refresh:hover {
    transform: rotate(180deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-icon-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

.weather-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.weather-current {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weather-temp {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    font-size: 4rem;
    opacity: 0.9;
    color: #f59e0b;
}

.temp-display {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
}

.temp-value {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.temp-unit {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    color: #1f2937;
}

.weather-condition {
    margin-top: 0.5rem;
}

.condition-text {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
    color: #374151;
}

.feels-like {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    color: #6b7280;
}

.weather-dive-conditions h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.dive-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.condition-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.condition-item:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.condition-item i {
    font-size: 1.5rem;
    opacity: 0.8;
    color: #3b82f6;
}

.condition-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.condition-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.condition-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.dive-safety-indicator {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dive-safety-indicator.safe {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}

.dive-safety-indicator.caution {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}

.dive-safety-indicator.unsafe {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.dive-safety-indicator i {
    font-size: 1.25rem;
}

/* Ocean Profile & Thermocline Section */
.ocean-profile-section {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.ocean-profile-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.ocean-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.profile-item:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.profile-label i {
    color: #3b82f6;
    font-size: 1rem;
}

.profile-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.profile-description {
    font-size: 0.8rem;
    color: #6b7280;
    opacity: 0.9;
}

.pelagic-indicator {
    position: relative;
}

.pelagic-indicator.high {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.pelagic-indicator.high .profile-value {
    color: #065f46;
}

.pelagic-indicator.medium {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.pelagic-indicator.medium .profile-value {
    color: #92400e;
}

.pelagic-indicator.low {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.pelagic-indicator.low .profile-value {
    color: #991b1b;
}

/* Visibility by Depth Section */
.visibility-depth-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.visibility-depth-section h5 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visibility-depth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.visibility-depth-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.visibility-depth-item:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.visibility-depth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.depth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.depth-label i {
    font-size: 0.7rem;
    color: #3b82f6;
}

.visibility-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.visibility-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.visibility-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.visibility-bar.excellent {
    background: linear-gradient(to right, #10b981, #34d399);
}

.visibility-bar.good {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
}

.visibility-bar.fair {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
}

.visibility-bar.poor {
    background: linear-gradient(to right, #ef4444, #f87171);
}

.visibility-quality {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.temperature-profile-chart {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-height: 250px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 250px;
    color: #6b7280;
}

.chart-loading i {
    font-size: 2rem;
}

.temp-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.temp-profile-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.profile-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.normal {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
}

.legend-color.thermocline {
    background: linear-gradient(to right, #dc2626, #f87171);
}

.temp-profile-visual {
    position: relative;
    height: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.temp-bars-container {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 180px;
    padding: 0 2rem;
    position: relative;
}

.temp-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    min-width: 25px;
}

.temp-bar {
    width: 100%;
    background: linear-gradient(to top, #3b82f6, #60a5fa);
    border-radius: 4px 4px 0 0;
    position: absolute;
    bottom: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.temp-bar:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.temp-bar.thermocline {
    background: linear-gradient(to top, #dc2626, #f87171);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.temp-bar.thermocline:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.bar-depth-label {
    position: absolute;
    bottom: 5px;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}

.bar-temp-label {
    position: absolute;
    top: 5px;
    font-size: 0.7rem;
    color: #1f2937;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.depth-axis {
    text-align: center;
    margin-top: 0.5rem;
}

.temp-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 180px;
    display: flex;
    align-items: center;
}

.axis-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.axis-ticks {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    font-size: 0.7rem;
    color: #9ca3af;
}

.max-dive-depth-line {
    position: absolute;
    bottom: calc(25px + (30 / 200 * 180px));
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(to right, transparent, #f59e0b 10%, #f59e0b 90%, transparent);
    pointer-events: none;
    z-index: 10;
}

.max-dive-depth-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        #f59e0b 0px,
        #f59e0b 10px,
        transparent 10px,
        transparent 20px
    );
}

.depth-marker-label {
    position: absolute;
    right: 0;
    top: -8px;
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thermocline-indicator-line {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    color: #991b1b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.thermocline-indicator-line i {
    color: #dc2626;
}

.thermocline-indicator-line.accessible {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: #065f46;
}

.thermocline-indicator-line.accessible i {
    color: #10b981;
}

.thermocline-indicator-line.inaccessible {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #991b1b;
}

.thermocline-indicator-line.inaccessible i {
    color: #ef4444;
}

.weather-forecast {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.weather-forecast h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.forecast-date {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    color: #6b7280;
    font-weight: 500;
}

.forecast-icon {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: #f59e0b;
}

.forecast-temp {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #1f2937;
}

.forecast-wind {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    color: #6b7280;
}

.weather-footer {
    text-align: center;
    opacity: 0.7;
    font-size: 0.85rem;
    color: #6b7280;
}

.weather-footer small {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Responsive adjustments for weather widget */
@media (max-width: 1024px) {
    .weather-main {
        grid-template-columns: 1fr;
    }
    
    .dive-conditions-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .dive-schedule-tabs {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .dive-schedule-tab {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .dive-schedule-tab span {
        font-size: 0.9rem;
    }
    
    .payroll-tab {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .payroll-tab span {
        font-size: 0.9rem;
    }
    
    .schedule-planner-container {
        padding: 1.5rem 1rem;
    }
    
    .planner-header h2 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .planner-description {
        font-size: 0.9rem;
    }
    
    .planner-date-selector-prominent {
        padding: 1rem;
    }
    
    .planner-date-label {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .planner-date-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .planner-date-quick-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .planner-date-picker-wrapper {
        width: 100%;
        min-width: unset;
    }
    
    .planner-date-input-enhanced {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .planner-date-display-badge {
        top: -8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .planner-daily-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-card {
        padding: 1.25rem;
    }
    
    .overview-count {
        font-size: 2.5rem;
    }
    
    .overview-details {
        max-height: 150px;
    }
    
    .boats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .boat-header {
        padding: 1rem;
    }
    
    .boat-title h4 {
        font-size: 1.1rem;
    }
    
    .boat-team {
        padding: 0.75rem;
    }
    
    .team-role {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .team-role label {
        min-width: unset;
    }
    
    .team-select {
        width: 100%;
    }
    
    .unassigned-divers-list {
        grid-template-columns: 1fr;
    }
    
    .team-members-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-widget {
        padding: 1rem;
    }
    
    .weather-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .weather-location h3 {
        font-size: 1.1rem;
    }
    
    .weather-date-selector-prominent {
        padding: 1rem;
    }
    
    .date-selector-label {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .date-selector-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-quick-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .date-picker-wrapper {
        width: 100%;
        min-width: unset;
    }
    
    .weather-date-input-enhanced {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .date-display-badge {
        top: -8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .btn-icon-refresh {
        width: 100%;
        min-width: unset;
        height: 48px;
    }
    
    .weather-temp {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .weather-icon {
        font-size: 3rem;
    }
    
    .temp-value {
        font-size: 2.5rem;
    }
    
    .dive-conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ocean-profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-value {
        font-size: 1.5rem;
    }
    
    .visibility-depth-section {
        padding: 0.75rem;
    }
    
    .visibility-depth-section h5 {
        font-size: 0.85rem;
    }
    
    .visibility-depth-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .visibility-depth-item {
        padding: 0.5rem;
    }
    
    .visibility-value {
        font-size: 1.25rem;
    }
    
    .depth-label {
        font-size: 0.75rem;
    }
    
    .visibility-quality {
        font-size: 0.7rem;
    }
    
    .temperature-profile-chart {
        padding: 1rem;
        min-height: 200px;
    }
    
    .temp-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-legend {
        font-size: 0.7rem;
        gap: 0.75rem;
    }
    
    .legend-color {
        width: 16px;
        height: 10px;
    }
    
    .temp-profile-visual {
        height: 160px;
    }
    
    .temp-bars-container {
        height: 140px;
        padding: 0 1rem;
        gap: 3px;
    }
    
    .temp-bar-wrapper {
        min-width: 15px;
    }
    
    .bar-depth-label {
        font-size: 0.6rem;
    }
    
    .bar-temp-label {
        font-size: 0.6rem;
        padding: 1px 2px;
    }
    
    .temp-axis {
        display: none;
    }
    
    .max-dive-depth-line {
        bottom: calc(25px + (30 / 200 * 140px));
        left: 1rem;
        right: 1rem;
    }
    
    .depth-marker-label {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
    
    .thermocline-indicator-line {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.dive-ops-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Divers List */
.divers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diver-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.diver-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.diver-card.has-logs {
    border-left: 4px solid #059669;
    background: linear-gradient(to right, #f0fdf4 0%, white 5%);
}

.diver-info {
    flex: 1;
}

.diver-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.diver-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.booking-ref-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.diver-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
}

.diver-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diver-details i {
    color: #3b82f6;
}

.dive-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.dive-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.dive-stats-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mini-dive-info {
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.25rem;
}

.mini-dive-info strong {
    color: #1e293b;
}

.diver-actions {
    display: flex;
    gap: 0.5rem;
}

/* Dive Log Modal */
#dive-log-modal .modal-content {
    max-width: 800px;
}

.diver-info-section {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.diver-info-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.diver-info-section p {
    margin: 0;
    opacity: 0.9;
}

/* Existing Dive Logs Section */
.no-logs-message {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.existing-logs-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.existing-logs-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.dive-logs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.dive-log-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.dive-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dive-number-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.delete-dive-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-dive-btn:hover {
    background: #fecaca;
}

.dive-log-details {
    font-size: 0.875rem;
}

.dive-log-details p {
    margin: 0.5rem 0;
    color: #374151;
}

/* Bulk Dive Log Modal */
#bulk-dive-log-modal .modal-content {
    max-width: 1000px;
}

.modal-large {
    max-width: 1000px;
}

.bulk-modal-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bulk-modal-info i {
    color: #2563eb;
    font-size: 1.25rem;
}

.bulk-modal-info p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.bulk-guest-selection-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.bulk-guests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.bulk-guest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-guest-item:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.bulk-guest-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.bulk-guest-item input[type="checkbox"]:checked ~ .bulk-guest-info {
    color: #1e40af;
    font-weight: 600;
}

.bulk-guest-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.bulk-guest-info strong {
    font-size: 0.9375rem;
    color: #1e293b;
}

.bulk-guest-info .badge {
    display: inline-block;
    margin-right: 0.375rem;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Responsive adjustments for bulk modal */
@media (max-width: 768px) {
    #bulk-dive-log-modal .modal-content {
        max-width: 95%;
    }
    
    .bulk-guests-grid {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .bulk-guest-selection-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bulk-guest-selection-controls .btn {
        width: 100%;
    }
}

/* Guest Link Modal Styles */
.guest-link-info {
    padding: 0.5rem 0;
}

.guest-link-container {
    margin: 1.5rem 0;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.guest-link-container input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
}

.guest-link-container input:focus {
    outline: none;
    box-shadow: none;
}

#guest-link-modal .modal-content {
    max-width: 600px;
}

.guest-link-info p {
    line-height: 1.6;
}

.guest-link-info p strong {
    color: #1e293b;
}

.dive-log-details p:first-child {
    margin-top: 0;
}

.dive-log-details strong {
    color: #1e293b;
    font-weight: 600;
}

/* Equipment Checklist */
.equipment-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.equipment-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
}

.equipment-checkbox-label:hover {
    background: #e2e8f0;
}

.equipment-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.equipment-checkbox-label span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.previously-rented-indicator {
    font-style: italic;
}

.equipment-checkbox-label:has(.previously-rented-indicator) {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

/* Agent Groups in Dive Log */
.agent-group {
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    overflow: hidden;
}

.agent-group-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-group-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-group-header h4 i {
    color: #3b82f6;
    font-size: 1rem;
}

.agent-group-count {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.agent-group .divers-grid {
    padding: 1.5rem;
    background: white;
    margin: 0;
}

/* Individual bookings styling */
.individual-group {
    border-color: #10b981;
}

.individual-group .agent-group-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.individual-group .agent-group-header h4 i {
    color: #10b981;
}

.individual-group .agent-group-count {
    background: #10b981;
}

/* Responsive adjustments for dive operations */
@media (max-width: 768px) {
    .date-selector-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-selector-group input,
    .date-selector-group button {
        width: 100%;
    }
    
    .diver-card {
        flex-direction: column;
    }
    
    .diver-actions {
        width: 100%;
        margin-top: 1rem;
    }
    
    .diver-actions button {
        width: 100%;
    }
    
    .diver-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dive-logs-grid {
        grid-template-columns: 1fr;
    }
}

/* Dive Log Page Styles */
.dive-log-header {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.dive-log-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dive-log-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dive-log-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.dive-log-monthly-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.monthly-section {
    border-radius: 0.75rem;
    overflow: hidden;
}

.monthly-section-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.monthly-section-header:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.monthly-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.monthly-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
}

.monthly-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.monthly-section-content {
    background: #f8fafc;
    padding: 1.5rem;
    display: none;
}

.monthly-section-content.expanded {
    display: block;
}

.divers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.guest-dive-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guest-dive-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.guest-dive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.guest-dive-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.guest-dive-meta {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-dive-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dive-count-badge-small {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.dive-count-badge-small.no-dives {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.guest-dive-card.no-dives-card {
    opacity: 0.85;
    border: 2px dashed #cbd5e1;
}

.guest-dive-card.no-dives-card:hover {
    opacity: 1;
    border-color: #3b82f6;
    border-style: solid;
}

.view-details-hint {
    text-align: center;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.guest-dive-card:hover .view-details-hint {
    color: #3b82f6;
}

.view-details-hint i {
    font-size: 0.875rem;
}

.guest-dive-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

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

.stat-item-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.stat-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.25rem;
}

.stat-item-value.amount {
    color: #059669;
}

.equipment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.equipment-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Guest Dive Details Modal */
.large-modal {
    max-width: 1400px;
}

/* Team Management Modal */
#team-management-modal .modal-content {
    max-width: 900px;
}

.team-management-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.add-team-member {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
}

.add-team-member h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.team-member-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-members-list h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.team-member-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.team-member-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.team-member-card.captain {
    border-left: 4px solid #3b82f6;
}

.team-member-card.guide {
    border-left: 4px solid #10b981;
}

.team-member-card.crew {
    border-left: 4px solid #f59e0b;
}

.team-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.team-member-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.team-member-role {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-role.captain {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
}

.team-member-role.guide {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
}

.team-member-role.crew {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

.team-member-info {
    font-size: 0.85rem;
    color: #6b7280;
}

.team-member-info div {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-member-info i {
    width: 16px;
    text-align: center;
    color: #9ca3af;
}

.delete-team-member {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.delete-team-member:hover {
    background: rgba(239, 68, 68, 0.1);
}

.guest-dive-details-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.guest-dive-details-header h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.guest-dive-details-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.guest-dive-details-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.details-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
}

.details-tab:hover {
    color: #3b82f6;
}

.details-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.details-tab-content {
    display: none;
}

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

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.details-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.details-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-section p {
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.details-section p:last-child {
    margin-bottom: 0;
}

.details-section strong {
    color: #1e293b;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.dive-logs-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dive-log-timeline-item {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.dive-log-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dive-log-timeline-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dive-log-timeline-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dive-detail-item {
    display: flex;
    flex-direction: column;
}

.dive-detail-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.dive-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.25rem;
}

.finance-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.finance-summary h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 1.5rem;
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.finance-item {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
}

.finance-item-label {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.finance-item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #065f46;
}

.finance-item-value.balance {
    color: #dc2626;
}

.finance-item-value.paid {
    color: #059669;
}

.empty-dive-log {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-dive-log i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-dive-log h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Responsive adjustments for dive log page */
@media (max-width: 768px) {
    .dive-log-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dive-log-controls button,
    .dive-log-controls .year-selector {
        width: 100%;
    }
    
    .monthly-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .divers-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-dive-stats {
        grid-template-columns: 1fr;
    }
    
    .details-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .finance-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-dive-details-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Manual Dive Override Styles */
.card-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.diver-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manual-override-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.manual-override-badge i {
    font-size: 0.875rem;
}

.diver-card.manual-override {
    border-left: 4px solid #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
}

.diver-card .diver-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Manual Add Diver Modal */
.guest-selection-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.guest-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guest-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.guest-option.already-listed {
    opacity: 0.6;
    background: #f1f5f9;
}

.guest-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.guest-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.guest-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.guest-option label strong {
    color: #1e293b;
    font-size: 1rem;
}

.guest-option label small {
    color: #64748b;
    font-size: 0.875rem;
}

.already-listed-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.info-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    color: #1e40af;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.info-text i {
    color: #3b82f6;
}

.large-modal .modal-content {
    max-width: 700px;
}

/* Responsive adjustments for manual override features */
@media (max-width: 768px) {
    .card-header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .diver-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .guest-option {
        padding: 0.75rem;
    }
}

/* ===== RESERVATIONS STYLES ===== */

/* Reservations Controls */
.reservations-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Reservations Stats */
.reservations-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Reservations Count */
.reservations-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Reservations Table */
.reservations-table {
    width: 100%;
    border-collapse: collapse;
}

.reservations-table th,
.reservations-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.reservations-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.reservations-table td {
    font-size: 0.875rem;
    color: #374151;
}

.reservations-table tbody tr:hover {
    background: #f8fafc;
}

/* Sortable Headers */
.reservations-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.reservations-table th.sortable:hover {
    background: #e2e8f0;
    color: #1e40af;
}

.reservations-table th.sortable .sort-icon {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.reservations-table th.sortable:hover .sort-icon {
    opacity: 1;
    color: #1e40af;
}

.reservations-table th.sortable.sorted-asc .sort-icon {
    opacity: 1;
    color: #1e40af;
}

.reservations-table th.sortable.sorted-asc .sort-icon::before {
    content: "\f0de"; /* fa-sort-up */
}

.reservations-table th.sortable.sorted-desc .sort-icon {
    opacity: 1;
    color: #1e40af;
}

.reservations-table th.sortable.sorted-desc .sort-icon::before {
    content: "\f0dd"; /* fa-sort-down */
}

/* Revenue Controls in Card Header */
.revenue-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.revenue-controls .year-selector,
.revenue-controls .quarter-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.revenue-controls label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.revenue-controls .filter-select {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    min-width: 120px;
}

.revenue-controls .filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Grouped Reservations */
.booking-group-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 2px solid #3b82f6;
    border-bottom: 1px solid #cbd5e1;
}

.booking-group-header.incomplete-reservation {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-top-color: #f59e0b;
}

.booking-group-header-cell {
    padding: 0.75rem 1rem !important;
    border: none !important;
}

.passenger-row {
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.passenger-row:hover {
    background: #f8fafc;
}

.passenger-row.incomplete-reservation {
    background: #fefbf3;
    border-left-color: #f59e0b !important;
}

.passenger-row.incomplete-reservation:hover {
    background: #fef3c7;
}

/* Spacing between booking groups */
.booking-group-header + .passenger-row {
    border-top: 1px solid #e2e8f0;
}

.passenger-row:last-child {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

/* Passenger Type Badges */
.badge-adult {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-child {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-infant {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
}

/* Action Button Icons */
.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.btn-icon.btn-danger {
    color: #dc2626;
}

.btn-icon.btn-danger:hover {
    background: #fee2e2;
    color: #991b1b;
}

/* Reservation Details Modal */
.reservation-details {
    padding: 1rem 0;
}

.reservation-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Detail Section - Override for reservations if needed */
.reservation-details .detail-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.reservation-details .detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reservation-details .detail-section h4 i {
    color: #3b82f6;
}

.reservation-details .detail-section p {
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
}

.reservation-details .detail-section p:last-child {
    margin-bottom: 0;
}

.reservation-details .detail-section p strong {
    color: #1e293b;
    font-weight: 600;
    display: inline-block;
    min-width: 160px;
}

/* Incomplete Reservation Indicators */
.incomplete-reservation {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b;
}

.incomplete-reservation:hover {
    background: #fde68a !important;
}

.incomplete-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.incomplete-badge i {
    font-size: 0.75rem;
}

.missing-info {
    color: #dc2626;
    font-style: italic;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Adjustments for Reservations */
@media (max-width: 768px) {
    .reservations-controls,
    .reservations-stats {
        padding: 1rem;
    }
    
    .reservations-table {
        font-size: 0.75rem;
    }
    
    .reservations-table th,
    .reservations-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .reservation-details .detail-section p strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .incomplete-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ============================================ */
/* MEAL TRACKING STYLES */
/* ============================================ */

/* Sub Navigation for Meals */
.sub-nav {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.sub-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-nav-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.sub-nav-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

/* Meals Tab Content */
.meals-tab {
    animation: fadeIn 0.3s ease;
}

/* Restaurants Grid */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.restaurant-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.restaurant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.restaurant-card .card-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.25rem;
}

.restaurant-card .card-header h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    color: #1e293b;
}

/* KPI Cards Enhancement for Meals */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Meal Cost Display in Reservation Form */
#meal-cost-display {
    animation: slideDown 0.3s ease;
}

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

/* Badge Variants */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

/* Button Size Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Adjustments for Meals */
@media (max-width: 768px) {
    .restaurants-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-nav {
        flex-direction: column;
    }
    
    .sub-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* GUEST MEAL DETAILS - ENHANCED STYLING */
/* ============================================ */

/* Enhanced table styling for meals */
#meals-guest-list-tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

#meals-guest-list-tbody tr:hover {
    background: linear-gradient(to right, #f9fafb, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Enhanced booking ref column */
#meals-guest-list-tbody tr td:first-child {
    font-weight: 600;
    color: #1e3a8a;
}

#meals-guest-list-tbody tr td:first-child strong {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

#meals-guest-list-tbody tr td:first-child small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Guest name styling */
#meals-guest-list-tbody tr td:nth-child(2) strong {
    color: #111827;
    font-size: 0.9rem;
}

/* Enhanced badges */
.badge {
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

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

.badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.badge-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Cost column styling */
#meals-guest-list-tbody tr td:nth-child(8) {
    font-family: 'Courier New', monospace;
}

#meals-guest-list-tbody tr td:nth-child(8) strong {
    font-size: 0.95rem;
    color: #059669;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #a7f3d0;
}

/* Duration column */
#meals-guest-list-tbody tr td:nth-child(6) strong {
    color: #7c3aed;
    font-size: 0.9rem;
}

/* Group row highlighting */
#meals-guest-list-tbody tr[style*="background: #fefce8"] {
    background: linear-gradient(135deg, #fefce8 0%, #fef9e7 100%) !important;
    border-left: 4px solid #fbbf24;
}

#meals-guest-list-tbody tr[style*="background: #fefce8"]:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%) !important;
}

/* Indented group rows */
#meals-guest-list-tbody tr td span[style*="color: #9ca3af"] {
    color: #6b7280 !important;
    font-weight: 500;
}

/* Search and filter section */
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.card-header h3 {
    color: #111827;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: #3b82f6;
}

/* Filter controls styling */
.card-header .form-input {
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.card-header .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.card-header .form-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Table header enhancements */
.data-table thead th {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-table thead th:first-child {
    border-top-left-radius: 10px;
}

.data-table thead th:last-child {
    border-top-right-radius: 10px;
}

/* Table cell padding */
.data-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

/* Meal plan cell with badge and text */
.data-table tbody td:nth-child(4) {
    line-height: 1.8;
}

.data-table tbody td:nth-child(4) small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* Restaurant column */
.data-table tbody td:nth-child(5) {
    font-weight: 500;
    color: #374151;
}

/* Dates column */
.data-table tbody td:nth-child(7) {
    font-size: 0.85rem;
    color: #4b5563;
    white-space: nowrap;
}

/* Status badges in last column */
.data-table tbody td:nth-child(9) {
    text-align: center;
}

/* Empty state styling */
.data-table tbody tr td[colspan] {
    padding: 3rem 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.data-table tbody tr td[colspan] i {
    font-size: 3rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 1rem;
}

/* Loading state */
.data-table tbody tr td[colspan] .fa-spinner {
    color: #3b82f6;
}

/* Smooth table animations */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#meals-guest-list-tbody tr {
    animation: fadeInRow 0.3s ease;
}

/* Zebra striping alternative (subtle) */
#meals-guest-list-tbody tr:nth-child(even):not([style*="background"]) {
    background: #fafbfc;
}

/* Responsive improvements for meals table */
@media (max-width: 1200px) {
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table tbody td,
    .data-table thead th {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .card-header > div {
        width: 100%;
        flex-direction: column !important;
    }
    
    .card-header .form-input {
        width: 100% !important;
    }
}

/* HR Management Coming Soon Styles */
.coming-soon-message {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.coming-soon-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.coming-soon-message p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.feature-preview h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-preview ul {
    list-style: none;
    padding: 0;
}

.feature-preview li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #475569;
}

.feature-preview li i {
    color: #10b981;
    font-size: 1rem;
}

/* Employee Management Styles */
.employee-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.employee-tab {
    background: white;
    border: none;
    padding: 1.25rem 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex: 1;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

.employee-tab:last-child {
    border-right: none;
}

.employee-tab:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
}

.employee-tab.active {
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    font-weight: 600;
}

.employee-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.employee-tab i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.employee-tab.active i {
    opacity: 1;
}

.employee-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.search-filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.search-filter-group .form-input {
    min-width: 200px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.search-filter-group .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Employee table specific styles */
#employees-table th,
#qualifications-table th,
#loans-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#employees-table td,
#qualifications-table td,
#loans-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

#employees-table tr:hover,
#qualifications-table tr:hover,
#loans-table tr:hover {
    background-color: #f8fafc;
}

.employee-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.employee-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-actions .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.status-badge {
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-inactive {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-terminated {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-leave {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.salary-amount {
    font-weight: 700;
    color: #059669;
    font-size: 1rem;
}

.loan-progress {
    width: 120px;
    height: 10px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

.loan-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.4s ease;
    border-radius: 4px;
}

.loan-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.expiry-warning {
    color: #dc2626;
    font-weight: 600;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
}

.expiry-soon {
    color: #d97706;
    font-weight: 600;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
}

/* Employee form sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    position: relative;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h3::before {
    content: '';
    width: 6px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Enhanced table container styling */
.table-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-container table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.table-container table thead tr:first-child th:first-child {
    border-top-left-radius: 0.75rem;
}

.table-container table thead tr:first-child th:last-child {
    border-top-right-radius: 0.75rem;
}

/* Enhanced card styling for employee sections */
.employee-tab-content .card {
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.employee-tab-content .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.employee-tab-content .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-tab-content .card-header h3::before {
    content: '';
    width: 6px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
}

/* Responsive employee management */
@media (max-width: 768px) {
    .employee-tabs {
        flex-wrap: wrap;
        gap: 0;
        border-radius: 0.5rem;
    }
    
    .employee-tab {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: 120px;
    }
    
    .search-filter-group {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1.25rem;
    }
    
    .search-filter-group .form-input {
        min-width: auto;
    }
    
    .employee-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .employee-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .table-container {
        overflow-x: auto;
        border-radius: 0.5rem;
    }
    
    #employees-table,
    #qualifications-table,
    #loans-table {
        min-width: 800px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .report-card {
        padding: 1.5rem;
    }
    
    .report-number {
        font-size: 2rem;
    }
    
    /* Employee modal responsive adjustments */
    #employee-modal .modal-content,
    #qualification-modal .modal-content,
    #loan-modal .modal-content {
        width: 98%;
        max-width: 95vw;
        margin: 0.5rem auto;
        max-height: 98vh;
    }
    
    #employee-modal .modal-header,
    #qualification-modal .modal-header,
    #loan-modal .modal-header {
        padding: 1rem;
    }
    
    #employee-modal .modal-body,
    #qualification-modal .modal-body,
    #loan-modal .modal-body {
        padding: 1rem;
    }
    
    #employee-modal .modal-footer,
    #qualification-modal .modal-footer,
    #loan-modal .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    /* Attendance responsive adjustments */
    .attendance-container {
        padding: 1rem;
    }
    
    .attendance-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    
    .date-selection {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        min-width: auto;
    }
    
    .date-selection .form-input {
        max-width: 100%;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .attendance-tabs {
        flex-wrap: wrap;
        gap: 0;
        border-radius: 0.75rem;
    }
    
    .attendance-tab {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
        flex: 1 1 45%;
        min-width: 140px;
    }
    
    .attendance-tab-content .card {
        border-radius: 0.75rem;
    }
    
    .attendance-tab-content .card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .attendance-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        width: 100%;
    }
    
    .stat-item {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    #attendance-table th,
    #attendance-table td {
        padding: 0.875rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .employee-info strong {
        font-size: 0.875rem;
    }
    
    .month-selector {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .attendance-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .attendance-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }
    
    .attendance-notes {
        max-width: 150px;
    }
    
    /* Monthly summary table responsive */
    #summary-table th,
    #summary-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    #summary-table th {
        font-size: 0.75rem;
    }
    
    #summary-table .status-badge {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .attendance-percentage {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 60px;
    }
}

/* Attendance Management Styles */
.attendance-container {
    padding: 0;
}

.attendance-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.date-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.date-selection label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.date-selection .form-input {
    flex: 1;
    max-width: 200px;
    padding: 0.625rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.date-selection .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.attendance-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.attendance-tab {
    background: white;
    border: none;
    padding: 1.25rem 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    flex: 1;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

.attendance-tab:last-child {
    border-right: none;
}

.attendance-tab:hover {
    color: #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
}

.attendance-tab.active {
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    font-weight: 600;
}

.attendance-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.attendance-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

.attendance-tab-content .card {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: white;
}

.attendance-tab-content .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.attendance-tab-content .card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendance-tab-content .card-header h3 i {
    color: #3b82f6;
    font-size: 1.5rem;
}

.attendance-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 1rem;
}

.stat-item span {
    font-size: 1rem;
    font-weight: 700;
}

.stat-item.present {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #86efac;
}

.stat-item.absent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.stat-item.late {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #fcd34d;
}

.attendance-status-badge {
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.attendance-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.attendance-status-badge.present {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.attendance-status-badge.absent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.attendance-status-badge.late {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.attendance-status-badge.sick {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.attendance-status-badge.sick-mc {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.attendance-status-badge.off {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #e5e7eb;
}

.attendance-status-badge.annual {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.attendance-status-badge.paternity {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.attendance-status-badge.conditional {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fde68a;
}

.attendance-status-badge.not-marked {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Inline Attendance Editing Styles */
.attendance-status-select,
.attendance-late-minutes,
.attendance-notes-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.attendance-status-select:focus,
.attendance-late-minutes:focus,
.attendance-notes-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.attendance-status-select {
    cursor: pointer;
    background-color: white;
    font-weight: 500;
}

.attendance-late-minutes {
    max-width: 120px;
}

.attendance-notes-input {
    min-width: 200px;
}

.attendance-auto-save-indicator {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

/* Improve table cell spacing for inline editing */
#attendance-table tbody tr td {
    vertical-align: middle;
    padding: 0.75rem;
}

#attendance-table tbody tr:hover {
    background-color: #f9fafb;
}

.attendance-tab-content .card-body {
    padding: 0;
}

/* =====================================================
   LEAVE BALANCES TAB STYLES
   ===================================================== */

/* Leave Balances Page Header */
#hr-leave-balances-page .page-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
}

/* Filter Controls Card */
#hr-leave-balances-page .card:first-of-type .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

#hr-leave-balances-page .card:first-of-type .card-header h3 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#hr-leave-balances-page .card:first-of-type .card-header h3 i {
    color: #3b82f6;
}

/* Leave Policy Summary Cards */
#hr-leave-balances-page .reports-grid {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

#hr-leave-balances-page .report-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#hr-leave-balances-page .report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

#hr-leave-balances-page .report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

#hr-leave-balances-page .report-card h4 {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
}

#hr-leave-balances-page .report-card .report-number {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hr-leave-balances-page .report-card small {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Off Day Balances Section Styling */
#off-day-balance-table {
    border-collapse: separate;
    border-spacing: 0;
}

#off-day-balance-table thead th {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    white-space: nowrap;
}

#off-day-balance-table thead th:first-child {
    border-top-left-radius: 0.75rem;
}

#off-day-balance-table thead th:last-child {
    border-top-right-radius: 0.75rem;
}

#off-day-balance-table tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

#off-day-balance-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

#off-day-balance-table tbody tr:hover {
    background: #eff6ff;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

#off-day-balance-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

#off-day-balance-table tbody td:first-child strong {
    color: #1e293b;
    font-weight: 600;
}

/* Leave Balances Table Styling */
#leave-balances-table {
    border-collapse: separate;
    border-spacing: 0;
}

#leave-balances-table thead th {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    white-space: nowrap;
}

#leave-balances-table thead tr:first-child th:first-child {
    border-top-left-radius: 0.75rem;
}

#leave-balances-table thead tr:first-child th:last-child {
    border-top-right-radius: 0.75rem;
}

#leave-balances-table tbody tr {
    background: #ffffff;
    transition: all 0.2s ease;
}

#leave-balances-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

#leave-balances-table tbody tr:hover {
    background: #f0fdfa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1);
}

#leave-balances-table tbody td {
    padding: 0.875rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

#leave-balances-table tbody td:first-child strong {
    color: #1e293b;
    font-weight: 600;
}

/* Section Headers with Badge */
#hr-leave-balances-page .card-header .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#hr-leave-balances-page .card-header .badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Enhanced Badge Styling for Leave Balances */
#off-day-balance-table .badge,
#leave-balances-table .badge {
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#off-day-balance-table .badge:hover,
#leave-balances-table .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#off-day-balance-table .badge-success,
#leave-balances-table .badge-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

#off-day-balance-table .badge-warning,
#leave-balances-table .badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

#off-day-balance-table .badge-danger,
#leave-balances-table .badge-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

#off-day-balance-table .badge-info,
#leave-balances-table .badge-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

#off-day-balance-table .badge-secondary,
#leave-balances-table .badge-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Card Spacing */
#hr-leave-balances-page .card {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#hr-leave-balances-page .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Body Padding */
#hr-leave-balances-page .card-body {
    padding: 0;
}

/* Header Actions */
#hr-leave-balances-page .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#hr-leave-balances-page .header-actions .form-input {
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #ffffff;
    min-width: 150px;
}

#hr-leave-balances-page .header-actions .form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Section Description Text */
#hr-leave-balances-page .card-header small {
    display: block;
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 400;
}

/* Responsive Design for Leave Balances */
@media (max-width: 1024px) {
    #hr-leave-balances-page .reports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #leave-balances-table {
        font-size: 0.8125rem;
    }
    
    #leave-balances-table thead th {
        padding: 0.75rem 0.5rem;
    }
    
    #leave-balances-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    #hr-leave-balances-page .reports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #hr-leave-balances-page .report-card {
        padding: 1.25rem;
    }
    
    #hr-leave-balances-page .report-card .report-number {
        font-size: 2rem;
    }
    
    #hr-leave-balances-page .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    #hr-leave-balances-page .header-actions .form-input {
        width: 100%;
    }
    
    #hr-leave-balances-page .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    #off-day-balance-table,
    #leave-balances-table {
        font-size: 0.75rem;
    }
    
    #off-day-balance-table thead th,
    #leave-balances-table thead th {
        padding: 0.75rem 0.375rem;
        font-size: 0.7rem;
    }
    
    #off-day-balance-table tbody td,
    #leave-balances-table tbody td {
        padding: 0.625rem 0.375rem;
    }
    
    #off-day-balance-table .badge,
    #leave-balances-table .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    #hr-leave-balances-page .reports-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    #hr-leave-balances-page .report-card {
        padding: 1rem;
    }
    
    #hr-leave-balances-page .report-card .report-number {
        font-size: 1.75rem;
    }
}

.attendance-tab-content .table-container {
    background: white;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
}

#attendance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#attendance-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

#attendance-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

#attendance-table td {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

#attendance-table tbody tr {
    transition: all 0.2s ease;
}

#attendance-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.employee-info strong {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.employee-info small {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.attendance-notes {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
    font-size: 0.875rem;
}

.attendance-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.attendance-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.attendance-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.month-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.month-selector label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    white-space: nowrap;
}

.month-selector select {
    min-width: 180px;
    padding: 0.625rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.month-selector select:hover {
    border-color: #3b82f6;
}

.month-selector select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    z-index: 10;
}

/* Monthly Summary Table Enhancements */
#summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#summary-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

#summary-table th {
    padding: 1rem 0.875rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

#summary-table th:first-child {
    text-align: left;
}

#summary-table td {
    padding: 1rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    text-align: center;
    font-size: 0.9375rem;
}

#summary-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
}

#summary-table tbody tr {
    transition: all 0.2s ease;
}

#summary-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* Enhanced status badges for summary table */
#summary-table .status-badge {
    padding: 0.5rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.attendance-percentage {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    display: inline-block;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.attendance-percentage.excellent {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 2px solid #86efac;
}

.attendance-percentage.good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.attendance-percentage.average {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid #fcd34d;
}

.attendance-percentage.poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

/* Employee Modal Styles */
#employee-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#employee-modal .modal-body {
    overflow-y: auto;
    flex: 1;
}

#qualification-modal .modal-content,
#loan-modal .modal-content {
    max-width: 600px;
    width: 95%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    flex-direction: column;
}

#qualification-modal .modal-body,
#loan-modal .modal-body {
    overflow-y: auto;
    flex: 1;
}

/* Employee Reports Styles */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.report-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.report-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

/* =====================================================
   MONTHLY ATTENDANCE CALENDAR STYLES
   ===================================================== */

/* Calendar Controls Row */
.calendar-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Attendance Legend */
.attendance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Calendar Zoom Controls */
.calendar-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.calendar-zoom-controls label {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
}

.calendar-zoom-controls .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.calendar-zoom-controls .btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zoom-level-display {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.875rem;
    min-width: 45px;
    text-align: center;
}

/* Monthly Calendar Container */
.monthly-calendar-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 650px;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Zoom levels for calendar - using font-size based scaling */
.monthly-calendar-container.zoom-50 .monthly-calendar-table {
    font-size: 0.5em;
}

.monthly-calendar-container.zoom-50 .date-column,
.monthly-calendar-container.zoom-50 .date-cell {
    min-width: 40px;
    padding: 0.4rem;
}

.monthly-calendar-container.zoom-50 .department-header,
.monthly-calendar-container.zoom-50 .employee-header {
    padding: 0.5rem 0.375rem;
    font-size: 0.65rem;
}

.monthly-calendar-container.zoom-50 .attendance-cell {
    min-width: 40px;
    padding: 0.375rem 0.25rem;
    font-size: 0.7rem;
}

.monthly-calendar-container.zoom-60 .monthly-calendar-table {
    font-size: 0.6em;
}

.monthly-calendar-container.zoom-60 .date-column,
.monthly-calendar-container.zoom-60 .date-cell {
    min-width: 48px;
    padding: 0.5rem;
}

.monthly-calendar-container.zoom-60 .department-header,
.monthly-calendar-container.zoom-60 .employee-header {
    padding: 0.6rem 0.4rem;
    font-size: 0.7rem;
}

.monthly-calendar-container.zoom-60 .attendance-cell {
    min-width: 48px;
    padding: 0.45rem 0.3rem;
    font-size: 0.75rem;
}

.monthly-calendar-container.zoom-70 .monthly-calendar-table {
    font-size: 0.7em;
}

.monthly-calendar-container.zoom-70 .date-column,
.monthly-calendar-container.zoom-70 .date-cell {
    min-width: 56px;
    padding: 0.6rem;
}

.monthly-calendar-container.zoom-70 .department-header,
.monthly-calendar-container.zoom-70 .employee-header {
    padding: 0.65rem 0.45rem;
    font-size: 0.72rem;
}

.monthly-calendar-container.zoom-70 .attendance-cell {
    min-width: 56px;
    padding: 0.5rem 0.35rem;
    font-size: 0.78rem;
}

.monthly-calendar-container.zoom-80 .monthly-calendar-table {
    font-size: 0.8em;
}

.monthly-calendar-container.zoom-80 .date-column,
.monthly-calendar-container.zoom-80 .date-cell {
    min-width: 64px;
    padding: 0.65rem;
}

.monthly-calendar-container.zoom-80 .department-header,
.monthly-calendar-container.zoom-80 .employee-header {
    padding: 0.7rem 0.475rem;
    font-size: 0.74rem;
}

.monthly-calendar-container.zoom-80 .attendance-cell {
    min-width: 64px;
    padding: 0.6rem 0.4rem;
    font-size: 0.8rem;
}

.monthly-calendar-container.zoom-90 .monthly-calendar-table {
    font-size: 0.9em;
}

.monthly-calendar-container.zoom-90 .date-column,
.monthly-calendar-container.zoom-90 .date-cell {
    min-width: 72px;
    padding: 0.7rem;
}

.monthly-calendar-container.zoom-90 .department-header,
.monthly-calendar-container.zoom-90 .employee-header {
    padding: 0.725rem 0.49rem;
    font-size: 0.745rem;
}

.monthly-calendar-container.zoom-90 .attendance-cell {
    min-width: 72px;
    padding: 0.675rem 0.45rem;
    font-size: 0.805rem;
}

/* Default 100% - no changes needed, uses base styles */

.monthly-calendar-container.zoom-110 .monthly-calendar-table {
    font-size: 1.1em;
}

.monthly-calendar-container.zoom-110 .date-column,
.monthly-calendar-container.zoom-110 .date-cell {
    min-width: 88px;
    padding: 0.825rem;
}

.monthly-calendar-container.zoom-110 .department-header,
.monthly-calendar-container.zoom-110 .employee-header {
    padding: 0.825rem 0.55rem;
    font-size: 0.825rem;
}

.monthly-calendar-container.zoom-110 .attendance-cell {
    min-width: 88px;
    padding: 0.825rem 0.55rem;
    font-size: 0.89rem;
}

.monthly-calendar-container.zoom-125 .monthly-calendar-table {
    font-size: 1.25em;
}

.monthly-calendar-container.zoom-125 .date-column,
.monthly-calendar-container.zoom-125 .date-cell {
    min-width: 100px;
    padding: 0.9375rem;
}

.monthly-calendar-container.zoom-125 .department-header,
.monthly-calendar-container.zoom-125 .employee-header {
    padding: 0.9375rem 0.625rem;
    font-size: 0.9375rem;
}

.monthly-calendar-container.zoom-125 .attendance-cell {
    min-width: 100px;
    padding: 0.9375rem 0.625rem;
    font-size: 1.015rem;
}

.monthly-calendar-container.zoom-150 .monthly-calendar-table {
    font-size: 1.5em;
}

.monthly-calendar-container.zoom-150 .date-column,
.monthly-calendar-container.zoom-150 .date-cell {
    min-width: 120px;
    padding: 1.125rem;
}

.monthly-calendar-container.zoom-150 .department-header,
.monthly-calendar-container.zoom-150 .employee-header {
    padding: 1.125rem 0.75rem;
    font-size: 1.125rem;
}

.monthly-calendar-container.zoom-150 .attendance-cell {
    min-width: 120px;
    padding: 1.125rem 0.75rem;
    font-size: 1.22rem;
}

/* Monthly Calendar Table */
.monthly-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    background: white;
}

.monthly-calendar-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
}

.monthly-calendar-table thead tr:first-child {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.monthly-calendar-table thead tr:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Department Header */
.department-header {
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%);
}

.department-header:last-child {
    border-right: none;
}

/* Employee Header */
.employee-header {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
}

/* Date Column (First Column) */
.date-column {
    position: sticky;
    left: 0;
    z-index: 9;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    min-width: 80px;
    padding: 0.75rem;
    text-align: center;
    border-right: 2px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

/* Date Cell */
.date-cell {
    position: sticky;
    left: 0;
    z-index: 8;
    background: white;
    border-right: 2px solid #e2e8f0;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03);
}

.date-day {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.date-num {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    margin-top: 0.125rem;
}

/* Attendance Cell */
.attendance-cell {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    cursor: default;
    min-width: 80px;
    white-space: pre-line;
    line-height: 1.4;
}

.attendance-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

/* Attendance Status Colors */
.status-present {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.status-late {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-absent {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-sick-leave {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-off-day {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.status-annual-leave {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border: 1px solid #fbbf24;
}

.status-paternity-leave {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #be185d;
    border: 1px solid #f9a8d4;
}

.status-conditional-leave {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4338ca;
    border: 1px solid #a5b4fc;
}

.status-empty {
    background: white;
    color: #cbd5e1;
    border: 1px solid #f1f5f9;
}

.status-unknown {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Table Row Hover Effect */
.monthly-calendar-table tbody tr:hover .date-cell {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

/* Scrollbar Styling */
.monthly-calendar-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.monthly-calendar-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0.5rem;
}

.monthly-calendar-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.monthly-calendar-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .monthly-calendar-table {
        font-size: 0.8125rem;
    }
    
    .employee-header {
        min-width: 70px;
        font-size: 0.7rem;
        padding: 0.625rem 0.375rem;
    }
    
    .attendance-cell {
        min-width: 70px;
        padding: 0.625rem 0.375rem;
        font-size: 0.75rem;
    }
    
    .date-column {
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .calendar-controls-row {
        flex-direction: column;
        gap: 1rem;
    }

    .attendance-legend {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .legend-color {
        width: 20px;
        height: 20px;
    }

    .calendar-zoom-controls {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .monthly-calendar-table {
        font-size: 0.75rem;
    }
    
    .department-header {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .employee-header {
        min-width: 60px;
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }
    
    .attendance-cell {
        min-width: 60px;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .date-column {
        min-width: 60px;
        padding: 0.5rem;
    }
    
    .date-day {
        font-size: 0.625rem;
    }
    
    .date-num {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .monthly-calendar-container {
        max-height: 500px;
    }
    
    .attendance-legend {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
    
    .legend-color {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   PAYROLL MANAGEMENT STYLES
   ============================================ */

/* Payroll Summary */
.payroll-summary {
    margin-top: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

.info-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0.75rem;
    color: #1e40af;
}

.info-message i {
    font-size: 1.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-message strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.375rem;
    color: #1e3a8a;
}

.info-message p {
    margin: 0;
    color: #1e40af;
    line-height: 1.5;
}

.info-message ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.info-message li {
    margin: 0.25rem 0;
    color: #1e40af;
}

/* Payroll Sections */
#payroll-sections {
    animation: fadeIn 0.4s ease-out;
}

#payroll-sections .card {
    margin-bottom: 2rem;
}

#payroll-sections .card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
}

#payroll-sections .card-header i {
    color: #3b82f6;
}

/* Payroll Table Styling - Using Bookings Table Style */
#payroll-sections .data-table {
    width: 100%;
    border-collapse: collapse;
}

#payroll-sections .data-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

#payroll-sections .data-table tbody td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

#payroll-sections .data-table tbody tr:hover {
    background: #f8fafc;
}

#payroll-sections .data-table tfoot td {
    padding: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border-top: 2px solid #cbd5e1;
    border-bottom: 1px solid #e2e8f0;
}

.salary-amount {
    text-align: right !important;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

#payroll-sections .text-center {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-style: italic;
}

/* Payroll Month/Year Selector */
#payroll-month,
#payroll-year {
    min-width: 150px;
}

/* Payroll Action Buttons */
.payroll-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border: none;
}

.btn-info:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Animation for smooth appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Payroll Tables */
@media (max-width: 1200px) {
    #payroll-sections .data-table {
        font-size: 0.875rem;
    }
    
    #payroll-sections .data-table thead th,
    #payroll-sections .data-table tbody td,
    #payroll-sections .data-table tfoot td {
        padding: 0.65rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .info-message {
        flex-direction: column;
    }
    
    #payroll-sections .card-header > div {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .payroll-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .payroll-actions .btn-sm {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    #payroll-sections .data-table {
        font-size: 0.75rem;
    }
    
    #payroll-sections .data-table thead th,
    #payroll-sections .data-table tbody td,
    #payroll-sections .data-table tfoot td {
        padding: 0.5rem 0.25rem;
    }
    
    .salary-amount {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .payroll-actions {
        flex-direction: column;
    }
    
    .payroll-actions .btn-sm {
        width: 100%;
    }
}

/* Group Assignment Styles */
.section-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.group-assignment-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.divers-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Group Assignment Modal */
.group-assignment-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
}

.groups-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.group-item {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.group-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.group-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.group-info h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.group-count {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.group-details {
    font-size: 0.9rem;
    color: #64748b;
}

.group-bookings, .group-divers {
    margin-bottom: 0.5rem;
}

.group-assignment-summary {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.selected-group-info p {
    margin-bottom: 0.5rem;
}

.diver-list ul {
    margin: 0.5rem 0 0 1rem;
    padding: 0;
}

.diver-list li {
    margin-bottom: 0.25rem;
}

.no-groups {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-style: italic;
}

/* Unassigned Divers Group Section */
.unassigned-groups-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
}

.unassigned-groups-section h5 {
    margin: 0 0 1.25rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-assignment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-assignment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.group-assignment-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.group-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.group-info strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

.group-count {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.group-assign-buttons {
    display: flex;
    gap: 0.5rem;
}

.group-assign-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.group-assign-buttons .btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Unassigned Individuals Section */
.unassigned-individuals-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
}

.unassigned-individuals-section h5 {
    margin: 0 0 1.25rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unassigned-diver-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.unassigned-diver-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.diver-info {
    flex: 1;
}

.diver-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.diver-booking {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.diver-agent {
    color: #059669;
    font-size: 0.8rem;
    font-weight: 600;
}

.assign-to-boat {
    display: flex;
    gap: 0.5rem;
}

.assign-boat-btn {
    padding: 0.5rem 0.875rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.assign-boat-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Responsive adjustments for group assignment */
@media (max-width: 768px) {
    .section-header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .group-assignment-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .group-assign-buttons {
        justify-content: center;
    }
    
    .unassigned-diver-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .assign-to-boat {
        justify-content: center;
    }
}