/**
 * Range Dashboard Styles
 */

/* Reset and Base */
.range-dashboard {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Header */
.dashboard-header {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-logo {
    max-width: 300px;
    height: auto;
}

.page-title {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: #666;
}

.btn-logout {
    padding: 8px 16px;
    background: #96030A;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c0392b;
    color: #ffffff !important;
}

/* Main Content */
.dashboard-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 22px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Account Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

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

.summary-item label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.summary-item span {
    font-size: 16px;
    color: #2c3e50;
}

/* Credits Section */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.credit-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.credit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.credit-item.range-credit {
    border-color: #3498db;
}

.credit-item.training-credit {
    border-color: #9b59b6;
}

.credit-item.target-credit {
    border-color: #e67e22;
}

.credit-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.credit-info h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #666;
}

.credit-count {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
}

.target-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.credit-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Bookings Section */
.no-bookings {
    text-align: center;
    padding: 40px 20px;
}

.no-bookings p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 12px;
}

.booking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: background 0.2s;
}

.booking-item:hover {
    background: #f8f9fa;
}

.booking-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    min-width: 80px;
}

.booking-date .date {
    font-size: 18px;
    font-weight: bold;
}

.booking-date .time {
    font-size: 14px;
}

.booking-details {
    flex: 1;
}

.booking-details .lane {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.booking-credits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ecf0f1;
    border-radius: 12px;
    font-size: 12px;
    color: #555;
}

.badge.pay-onsite {
    background: #ffe4b5;
}

.booking-actions .cannot-cancel {
    font-size: 20px;
    color: #95a5a6;
    cursor: help;
}

.booking-action {
    margin-top: 20px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: #fff;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn .icon {
    margin-right: 6px;
}

.btn .spinner {
    margin-right: 8px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    margin-top: 0;
    color: #2c3e50;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
}

.login-links .separator {
    margin: 0 10px;
}

/* Banned Page */
.banned-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.banned-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.banned-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.ban-reason {
    background: #ffe4e1;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    color: #c0392b;
}

.contact-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox label {
    margin-bottom: 0;
    margin-left: 8px;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Notices */
.notice {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notice.error {
    background: #ffe4e1;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.notice.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

/* Booking Page */
.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 20px;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
}

.back-link a:hover {
    text-decoration: underline;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.selected-date-display {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.time-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-btn:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.time-slot-btn .time {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.time-slot-btn .availability {
    font-size: 13px;
    opacity: 0.8;
}

.no-slots {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.booking-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.booking-option {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.booking-option h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
}

.option-radio,
.option-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.option-radio input,
.option-checkbox input {
    margin-right: 10px;
    cursor: pointer;
}

.no-credits {
    color: #e74c3c;
    font-style: italic;
}

.success-icon {
    font-size: 72px;
    text-align: center;
    margin-bottom: 20px;
}

.confirmation-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 50px auto;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.modal-close:hover {
    color: #7f8c8d;
}

.modal-body {
    padding: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-logo {
        max-width: 200px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .credits-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-date {
        align-self: stretch;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* RO Menu Mobile */
    .ro-menu {
        display: none;
        flex-direction: column;
        background: #0C0304;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .ro-menu.active {
        display: flex;
    }
    
    .ro-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* RO Navigation */
.ro-navigation {
    background: #0C0304;
    border-bottom: 3px solid #96030A;
    position: relative;
}

ul#ro-menu li {
    margin-bottom: 0px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
}

.ro-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}

.ro-menu li {
    flex: 1;
}

.ro-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.ro-menu li a:hover {
    background: #96030A;
    color: #ffffff !important;
}

.ro-menu li.active a {
    background: #96030A;
}

.ro-menu .icon {
    font-size: 20px;
}

.ro-menu .label {
    font-weight: 600;
}

/* RO Dashboard Calendar */
.ro-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.ro-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ro-calendar-table th {
    background: #34495e;
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
}

.ro-calendar-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.ro-calendar-table tr.current-hour {
    background: #fff9e6;
}

.ro-calendar-table .time-cell {
    background: #f8f9fa;
    font-weight: 600;
}

.ro-calendar-table .availability-cell {
    font-weight: 600;
}

.ro-calendar-table .availability-cell.available {
    background: #d4edda;
    color: #155724;
}

.ro-calendar-table .availability-cell.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.ro-calendar-table .duty-cell {
    vertical-align: top;
    text-align: left;
}

.ro-badge {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 3px 8px;
    margin: 2px;
    border-radius: 3px;
    font-size: 11px;
}

.no-ro {
    color: #95a5a6;
    font-style: italic;
}

.ro-calendar-table .lane-cell {
    min-height: 60px;
    vertical-align: top;
}

.ro-calendar-table .lane-cell.booked {
    background: #e8f5e9;
}

.ro-calendar-table .lane-cell.empty {
    background: #f5f5f5;
}

.empty-slot {
    color: #ccc;
    font-size: 18px;
}

.booking-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.booking-link:hover {
    background: rgba(52, 152, 219, 0.1);
}

.booking-info strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.booking-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: left;
}

.mini-badge {
    font-size: 14px;
}

.mini-badge.pay {
    padding: 2px 4px;
    border-radius: 3px;
}

.legend {
    margin-top: 20px;
}

.legend h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.legend-items {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Booking Detail Page */
.booking-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.info-item label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-item span {
    display: block;
    font-size: 16px;
    color: #2c3e50;
}

.attendance-status {
    font-weight: 600;
}

.attendance-status.attended {
    color: #27ae60;
}

.attendance-status.not-attended {
    color: #e74c3c;
}

.customer-actions {
    margin-top: 20px;
}

.payment-notice {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-notice.payment-due {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.payment-notice strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.credit-usage {
    margin-top: 20px;
}

.credit-usage h3 {
    margin-bottom: 12px;
    color: #2c3e50;
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credit-used {
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 15px;
}

.no-credits {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #7f8c8d;
    font-style: italic;
}

/* Indemnity Notices */
.indemnity-notice {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.indemnity-notice.indemnity-critical {
    background: #ffe4e1;
    border-left: 4px solid #e74c3c;
    color: #721c24;
}

.indemnity-notice.indemnity-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.indemnity-notice p {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.indemnity-notice .btn {
    margin-top: 10px;
}

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

.booking-notes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.booking-notes h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Reschedule Slot Selection */
.time-slot-btn.selected {
    background: #3498db;
    color: #fff;
    border-color: #2980b9;
}

/* Additional Mobile Responsive */
@media (max-width: 768px) {
    .ro-calendar-table {
        font-size: 11px;
    }
    
    .ro-calendar-table th,
    .ro-calendar-table td {
        padding: 6px 4px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* Phase 3: Customer Management Styles */

/* Customer Search Page */
.customers-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.search-form .form-group {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.search-input {
    font-size: 16px;
    padding: 12px;
}

#search-results {
    margin-top: 30px;
}

#search-results h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.customer-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-result-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
}

.customer-result-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.customer-link {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
}

.customer-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.customer-email {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 3px;
}

.customer-phone {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.customer-type {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #27ae60;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 8px;
}

.customer-banned {
    display: inline-block;
    padding: 4px 10px;
    background: #ffe4e1;
    color: #e74c3c;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.quick-stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-icon {
    font-size: 36px;
}

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

.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

/* Customer Detail Page */
.customer-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

.ban-notice-large {
    background: #ffe4e1;
    border: 3px solid #e74c3c;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.ban-notice-large h2 {
    color: #c0392b;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.ban-notice-large p {
    margin: 0;
    font-size: 16px;
    color: #721c24;
}

.booking-item.past {
    opacity: 0.7;
}

.badge-attended {
    display: inline-block;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-no-show {
    display: inline-block;
    padding: 4px 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Duty Roster Page */
.duty-roster-container {
    max-width: 1000px;
    margin: 0 auto;
}

.date-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.date-controls .form-control {
    flex: 1;
    min-width: 200px;
}

.help-text {
    color: #7f8c8d;
    margin-bottom: 20px;
}

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

.duty-table th {
    background: #34495e;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.duty-table td {
    border: 1px solid #ddd;
    padding: 12px;
    vertical-align: middle;
}

.duty-table .time-cell {
    background: #f8f9fa;
}

.duty-table .other-ros-cell {
    min-height: 50px;
}

.no-other-ros {
    color: #ccc;
}

.my-duty-cell {
    text-align: center;
}

/* Toggle Switch */
.duty-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.duty-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.duty-toggle input:checked + .toggle-slider {
    background-color: #27ae60;
}

.duty-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Purchases Page */
.purchases-container {
    max-width: 1000px;
    margin: 0 auto;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bookings-table th {
    background: #34495e;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.bookings-table td {
    border: 1px solid #ddd;
    padding: 12px;
}

.bookings-table tbody tr:hover {
    background: #f8f9fa;
}

.payment-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.payment-badge.cash {
    background: #fff3cd;
    color: #856404;
}

.payment-badge.credits {
    background: #d4edda;
    color: #155724;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.attended {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.info-notice {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
}

.info-notice p {
    margin: 0;
    color: #2c3e50;
}

/* Legend Box for Purchases */
.legend-box {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.month-form select {
    min-width: 200px;
    min-height: 40px;
}

.month-form .form-group {
    margin-bottom: 16px !important;
}

.month-form .btn-primary {
    padding: 20px 30px;
    font-size: 15px;
}

/* Mobile Responsive for Phase 3 */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-group {
        width: 100%;
    }
    
    .date-controls {
        flex-direction: column;
    }
    
    .date-controls .form-control {
        width: 100%;
    }
    
    .duty-table {
        font-size: 12px;
    }
    
    .duty-table th,
    .duty-table td {
        padding: 8px 4px;
    }
    
    .bookings-table {
        font-size: 12px;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 6px;
    }
}
