/* 
 * Paana Booking System - Main Stylesheet
 * ========================================
 */

/* Modal Styles */
#paanaBookingModal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.paana-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.paana-modal-header {
    padding: 24px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paana-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paana-modal-header h2 .modal-icon {
    font-size: 28px;
}

.paana-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.paana-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.paana-modal-body {
    padding: 30px;
    min-height: 500px;
}

/* Step Indicator */
.paana-step-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 40px 0;
}

.paana-step-indicator .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #7f8c8d;
    position: relative;
    transition: all 0.3s ease;
}

.paana-step-indicator .step.active {
    background: #3498db;
    border-color: #2980b9;
    color: white;
    transform: scale(1.1);
}

.paana-step-indicator .step.completed {
    background: #27ae60;
    border-color: #219653;
    color: white;
}

.paana-step-indicator .step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
}

.paana-step-indicator .step:last-child::after {
    display: none;
}

/* Progress Bar */
.paana-progress-container {
    width: 100%;
    height: 6px;
    background: #f8f9fa;
    border-radius: 3px;
    margin: 20px 0 40px 0;
    overflow: hidden;
}

.paana-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db 0%, #27ae60 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Summary Styles */
.paana-summary-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e0e0e0;
}

.paana-summary-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.paana-summary-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.paana-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.paana-summary-row:last-child {
    border-bottom: none;
}

.paana-summary-row.paana-summary-total {
    border-top: 2px solid #2c3e50;
    border-bottom: none;
    margin-top: 15px;
    padding-top: 20px;
    font-weight: 600;
}

.paana-summary-label {
    color: #7f8c8d;
    font-weight: 500;
}

.paana-summary-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.paana-summary-total .paana-summary-value {
    color: #27ae60;
    font-size: 20px;
}

/* Alert Messages */
.paana-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paana-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.paana-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.paana-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.paana-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Overlay */
.paana-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.paana-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .paana-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .paana-modal-header {
        padding: 20px;
    }
    
    .paana-modal-header h2 {
        font-size: 20px;
    }
    
    .paana-modal-body {
        padding: 20px;
    }
    
    .paana-step-indicator .step::after {
        width: 20px;
    }
    
    .paana-summary-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .paana-summary-value {
        max-width: 100%;
        text-align: left;
    }
}

/* Print Styles */
@media print {
    #paanaBookingModal {
        position: static;
        background: white;
    }
    
    .paana-modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    
    .paana-modal-header,
    .paana-step-footer,
    .paana-close-modal {
        display: none !important;
    }
}

/* Accessibility */
.paana-service-btn:focus,
.paana-btn:focus,
.time-slot:focus,
.paana-date-input:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .paana-modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .paana-service-btn {
        background: #34495e;
        border-color: #4a6278;
    }
    
    .paana-service-btn:hover {
        background: #3d566e;
    }
    
    .paana-step-indicator .step {
        background: #34495e;
        border-color: #4a6278;
    }
    
    .paana-summary-container {
        background: #34495e;
        border-color: #4a6278;
    }
    
    .paana-summary-label {
        color: #bdc3c7;
    }
    
    .paana-summary-value {
        color: #ecf0f1;
    }
}