@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary: #DEB130;
    --primary-hover: rgba(199, 154, 37, 0.7);
    --text: #0d141c;
    --bg: #f8fafc;
    --glass: rgba(166, 166, 166, 0.6);
    --accent: #DEB130;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --border-radius: 10px;
    --main: #A6A6A6;
    --am-color: #FFD700;
    --pm-color: #A9A9A9;
    --doctor-color: #5ebd61;
    --selected-day: #ff0000;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #A6A6A6, #F5F5F5, #F4D56E);
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Common button styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(222, 177, 48, 0.3);
}

.action-btn {
    background-color: rgba(222, 177, 48, 0.6);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(222, 177, 48, 0.3);
}

/* Common section styles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Container styles */
.container {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 10px auto;
    padding: 10px;
}

.main-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

/* Modal base styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 28px;
    color: #777;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text);
}

/* Footer Styles */
.footer {
    background: #111 !important;
    padding: 30px 20px 15px 20px !important;
    color: #ccc !important;
    margin-top: 60px !important;
    width: 100% !important;
    font-family: 'Inter', 'Noto Sans', sans-serif !important;
    position: relative;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 0 auto 20px !important;
    padding: 0 20px !important;
    align-items: start !important;
}

.footer-card {
    text-align: left !important;
    min-height: 120px !important;
}

.footer-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #DEB130 !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.footer-title svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #DEB130 !important;
    flex-shrink: 0 !important;
}

.footer-content {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #aaa !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.social-icons {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.social-icon {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: #DEB130 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-icon img {
    width: 18px !important;
    height: 18px !important;
    filter: brightness(0) invert(1) !important;
}

.social-icon:hover {
    transform: scale(1.1) !important;
    background: rgba(222, 177, 48, 0.85) !important;
}

.footer-bottom {
    text-align: center !important;
    font-size: 12px !important;
    color: #777 !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
    border-top: 1px solid #333 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center !important;
    }
    
    .footer-card {
        text-align: center !important;
        min-height: auto !important;
    }
    
    .footer-title {
        justify-content: center !important;
    }
    
    .social-icons {
        justify-content: center !important;
    }
}
/* Modal Styles - Ensure these exist */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* Calendar day styles */
.calendar-day {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-day:hover:not(.past-date):not(.empty-day) {
    background-color: #f0f0f0;
}

.selected-day {
    background-color: var(--primary);
    color: white;
}

.doctor-available {
    border-left: 3px solid #28a745;
}

.past-date {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Add to your CSS file or in a style tag */
.status-pending-cancellation {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-pending-reschedule {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.appointment-row.pending_cancellation {
    background-color: #fffdf6;
}

.appointment-row.pending_reschedule {
    background-color: #f6fdff;
}

.appointment-row.cancelled {
    background-color: #fef6f7;
    opacity: 0.7;
}

.appointment-row.completed {
    background-color: #f6fef9;
    opacity: 0.8;
}

.notification {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}
/* Password toggle eye icon */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 2;
}

.password-toggle:hover {
    color: #DEB130;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    padding-right: 45px; /* Make space for eye icon */
}

/* Validation styles */
.input-group input.invalid {
    border-color: #dc3545;
}

.input-group input.valid {
    border-color: #28a745;
}

.validation-message {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.validation-message.error {
    color: #dc3545;
}

.validation-message.success {
    color: #28a745;
}