/**
 * CSS pentru Dashboard-ul Pacient
 */

/* Container principal */
.clinica-patient-dashboard {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Extinde și centrează pagina la 1600px când există dashboard-ul de pacient (identic cu Doctor/Asistent) */
body:has(.clinica-patient-dashboard) .page-content,
body:has(.clinica-patient-dashboard) article.post,
body:has(.clinica-patient-dashboard) .entry-content,
body:has(.clinica-patient-dashboard) .content-area,
body:has(.clinica-patient-dashboard) .site-main,
body:has(.clinica-patient-dashboard) .site-content,
body:has(.clinica-patient-dashboard) .page-container {
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

/* Fixează dashboard-ul la 1600px și centrează-l */
body:has(.clinica-patient-dashboard) .clinica-patient-dashboard {
    max-width: 1600px !important;
    width: 1600px !important;
    margin: 0 auto !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Extinde zona de conținut (NU header-ul) când este vizibil dashboard-ul pacientului */
/* Nu modificăm containerele temei pentru a evita efecte colaterale */

/* Lărgește și „page-content” al temei și centrează conținutul */
/* Revertem orice lărgire a .page-content */

/* Extinde și containerul articolului/paginii care conține dashboard-ul */
/* Fără forțări suplimentare pe elementele părinte */

/* Elimină orice secțiune/box plasat înainte sau după dashboard în zona principală (pentru pagina de dashboard) */
/* Eliminăm regula de ascundere a elementelor adiacente */

/* Păstrează header-ul și bara de tab-uri la 1200px pentru a nu afecta aspectul global */
/* Lăsăm headerul și taburile să ocupe 100% din containerul de conținut */
.clinica-patient-dashboard .dashboard-header,
.clinica-patient-dashboard .dashboard-tabs {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Fără extindere la 1600px pentru dashboard-content */
.clinica-patient-dashboard .dashboard-content { }

/* Header Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c5aa0;
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.patient-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.patient-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.5);
}

.patient-details h2 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 28px;
    font-weight: 600;
}

.patient-details p {
    margin: 4px 0;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    opacity: 0.9;
}

.patient-cnp {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.dashboard-actions .button {
    background: #0073AA !important;
    color: white !important;
    border: 1px solid #0073AA !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    display: inline-block !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.dashboard-actions .button:hover {
    background: #005a87 !important;
    border-color: #005a87 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

.dashboard-actions .button-secondary {
    background: rgba(220,53,69,0.8) !important;
    color: white !important;
    border: 1px solid rgba(220,53,69,0.9) !important;
}

/* Navigation Tabs */
.dashboard-tabs {
    display: flex;
    background: white;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 0;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button:hover::before {
    width: 100%;
}

.tab-button.active {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.tab-button.active::before {
    width: 100%;
}

/* Dashboard Content */
.dashboard-content {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 500px;
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

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

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #dee2e6;
}

.dashboard-card h3 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Info Grid */
.info-grid {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

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

.info-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
}

.info-item label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.info-item span {
    color: #495057;
    font-weight: 500;
    text-align: right;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr; /* una sub alta */
    gap: 0; /* listă compactă, ca la cardul cu informații personale */
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 10px 0; /* ca în rândurile din Informații personale */
    background: transparent;
    border: none;
    border-bottom: 1px solid #e9ecef;
}
.stat-item:last-child { border-bottom: none; }

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.stat-number {
    order: 1; /* după etichetă */
    font-size: 14px;
    font-weight: 600;
    color: #212529; /* culoare text normală */
    margin-left: 4px;
}

.stat-label {
    order: 0;
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.stat-label::after { content: ': '; }

/* Activity List */
.activity-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

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

.activity-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    padding-left: 10px;
    margin-left: -10px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.appointment {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.activity-icon.message {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.activity-icon.result {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
}

/* Appointments Container */
.appointments-container {
    padding: 0;
}

.appointments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.appointments-header h3 {
    margin: 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.appointments-filters select {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.appointments-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.appointments-list {
    min-height: 200px;
}

.appointments-grid {
    display: grid;
    gap: 15px;
}

.appointment-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.appointment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.appointment-date {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

.appointment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.appointment-status.confirmed {
    background: #d4edda;
    color: #155724;
}

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

.appointment-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.appointment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    font-size: 14px;
}

.appointment-detail {
    display: flex;
    flex-direction: column;
}

.appointment-detail label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 2px;
}

.appointment-detail span {
    color: #495057;
}

/* Medical Container */
.medical-container {
    padding: 0;
}

.medical-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.medical-header h3 {
    margin: 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.medical-content {
    display: grid;
    gap: 30px;
}

.medical-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.medical-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.medical-section h4::before {
    content: '';
    width: 3px;
    height: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.medical-text {
    line-height: 1.6;
    color: #495057;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.medical-results,
.prescriptions {
    min-height: 100px;
}

/* Messages Container */
.messages-container {
    padding: 0;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.messages-header h3 {
    margin: 0;
    color: #495057;
    font-size: 24px;
    font-weight: 600;
}

.messages-list {
    min-height: 300px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Error States */
.error {
    text-align: center;
    padding: 30px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

/* Empty States */
.no-appointments,
.no-activities,
.no-results,
.no-prescriptions {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

/* Messages Container */
#clinica-dashboard-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.dashboard-message {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-left: 4px solid #667eea;
    animation: slideInRight 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-message.success {
    border-left-color: #28a745;
}

.dashboard-message.error {
    border-left-color: #dc3545;
}

.dashboard-message.warning {
    border-left-color: #ffc107;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .clinica-patient-dashboard {
        padding: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }
    
    .patient-info-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dashboard-actions .button {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        display: block !important;
    }
    
    .dashboard-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .appointments-header,
    .medical-header,
    .messages-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .appointment-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .appointment-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 20px 15px;
    }
    
    .patient-details h2 {
        font-size: 24px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .dashboard-card {
        padding: 20px 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .dashboard-header,
    .dashboard-tabs,
    .dashboard-actions {
        display: none;
    }
    
    .clinica-patient-dashboard {
        background: white;
        padding: 0;
    }
    
    .dashboard-content {
        box-shadow: none;
        border: none;
    }
    
    .tab-content {
        display: block !important;
        padding: 0;
    }
    
    .dashboard-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Stiluri pentru tab-ul Family */
.family-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.family-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.family-header .button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.family-header .button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.family-info {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.family-status {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.family-status h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.family-status p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

.family-status strong {
    color: #495057;
    font-weight: 600;
}

.family-members {
    padding: 25px 30px;
}

.family-members-list {
    margin-top: 20px;
}

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

.family-member-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.family-member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.member-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.member-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid rgba(102, 126, 234, 0.2);
}

.member-info {
    flex: 1;
}

.member-info h5 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.member-role {
    margin: 5px 0;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-age {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 12px;
}

.family-not-configured,
.no-family-members {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.family-not-configured h4,
.no-family-members h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.family-not-configured p,
.no-family-members p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive pentru Family */
@media (max-width: 768px) {
    .family-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .family-header h3 {
        font-size: 20px;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .family-member-card {
        padding: 15px;
    }
    
    .member-avatar {
        width: 50px;
        height: 50px;
    }
    
    .member-info h5 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .family-header {
        padding: 20px;
    }
    
    .family-info,
    .family-members {
        padding: 20px;
    }
    
    .family-member-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .member-info {
        text-align: center;
    }
}

/* Stilizare pentru dropdown-ul de programări cu membri familie */
#booking-patient {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    cursor: pointer;
}

#booking-patient:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

#booking-patient:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

#booking-patient option {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: white;
}

#booking-patient option:first-child {
    font-weight: 700;
    color: #667eea;
    background: #f8f9ff;
}

#booking-patient option:not(:first-child) {
    border-top: 1px solid #f1f3f4;
}

#booking-patient option:hover {
    background: #f8f9ff;
}

/* Stilizare pentru formularul de programări */
.appointment-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Responsive pentru formular */
@media (max-width: 768px) {
    .form-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .appointment-form {
        padding: 16px;
    }
}

/* ========================================
   MODAL PENTRU CONFIRMAREA ANULĂRII
   ======================================== */

.clinica-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clinica-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.clinica-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clinica-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.clinica-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.clinica-modal-body {
    padding: 24px;
    text-align: center;
}

.clinica-modal-body p {
    margin: 0;
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.5;
}

.clinica-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    background: #f8f9fa;
}

.clinica-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clinica-btn-secondary {
    background: #6c757d;
    color: white;
}

.clinica-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.clinica-btn-danger {
    background: #dc3545;
    color: white;
}

.clinica-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Responsive pentru modal */
@media (max-width: 480px) {
    .clinica-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .clinica-modal-header,
    .clinica-modal-body,
    .clinica-modal-footer {
        padding: 20px;
    }
    
    .clinica-modal-footer {
        flex-direction: column;
    }
    
    .clinica-btn {
        width: 100%;
    }
} 