/* ===========================================
   Doctor Dashboard Sayfası Stilleri
   doctor_dashboard.php
   =========================================== */

:root {
    --bg-body: #F5F7FB;
    --bg-card: #FFFFFF;
    --text-primary: #1A1D20;
    --text-secondary: #6B7280;
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
    --border-light: #E5E7EB;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

.topbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo i {
    color: var(--accent);
}

.welcome-section {
    padding: 30px 0 20px 0;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.dashboard-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13,110,253,0.3);
}

.dashboard-card:hover::before {
    background: var(--accent);
}

.dashboard-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(13,110,253,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .icon-wrapper {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.dashboard-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Card Color Variants */
.card-qr::before { background: #10B981; }
.card-qr .icon-wrapper { background: rgba(16,185,129,0.1); color: #10B981; }
.card-qr:hover .icon-wrapper { background: #10B981; color: white; }

.card-reminders::before { background: #F59E0B; }
.card-reminders .icon-wrapper { background: rgba(245,158,11,0.1); color: #F59E0B; }
.card-reminders:hover .icon-wrapper { background: #F59E0B; color: white; }

.card-profile::before { background: #8B5CF6; }
.card-profile .icon-wrapper { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.card-profile:hover .icon-wrapper { background: #8B5CF6; color: white; }

.card-vaccine::before { background: #EC4899; }
.card-vaccine .icon-wrapper { background: rgba(236,72,153,0.1); color: #EC4899; }
.card-vaccine:hover .icon-wrapper { background: #EC4899; color: white; }

/* Panel Container */
.panel-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249,250,251,0.5);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.patient-count-badge {
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.panel-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.patient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patient-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.2s;
}

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

.patient-item:hover {
    background: #F9FAFB;
}

.patient-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13,110,253,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.patient-info {
    flex: 1;
    min-width: 0;
}

.patient-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.patient-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    color: #D1D5DB;
    margin-bottom: 15px;
}

.skeleton {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 4px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

/* Takip İstekleri */
.requests-section {
    margin-top: 28px;
}

.requests-section .section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.request-card:hover {
    box-shadow: var(--shadow);
}

.request-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-info {
    flex: 1;
    min-width: 0;
}

.request-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.request-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-actions {
    display: flex;
    gap: 8px;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ═══ Randevu Talepleri Stilleri ═══ */
.appointment-alert-banner {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #93C5FD;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
}

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

.alert-icon-pulse {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3B82F6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse-ring 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}

.appointment-requests-section {
    margin-top: 28px;
    margin-bottom: 20px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.appointment-requests-section .section-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.appt-request-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.appt-request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: #F59E0B;
    border-radius: 4px 0 0 4px;
}

.appt-request-card.status-rescheduled::before {
    background: #8B5CF6;
}

.appt-request-card:hover {
    box-shadow: var(--shadow);
    border-color: rgba(59,130,246,0.3);
}

.appt-req-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.appt-req-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appt-req-info {
    flex: 1;
    min-width: 0;
}

.appt-req-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.appt-req-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.appt-req-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-resched {
    background: #EDE9FE;
    color: #5B21B6;
}

.appt-req-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.appt-req-details .detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.appt-req-details .detail-item i {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.appt-req-reason {
    font-size: 0.82rem;
    color: var(--text-primary);
    background: #F9FAFB;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0;
    border-left: 3px solid #E5E7EB;
}

.appt-req-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.appt-req-actions .btn {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.quick-approve-summary {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 10px;
    padding: 14px;
}

.quick-approve-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.quick-approve-summary .summary-label {
    color: #6B7280;
}

.quick-approve-summary .summary-value {
    font-weight: 600;
    color: #1F2937;
    text-align: right;
}

.appt-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #3B82F6;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}
