:root {
    --brand: #4f46e5;
    --brand-soft: #c7d2fe;
    --accent: #0ea5e9;
    --warning: #f59e0b;
    --error: #ef4444;
    --success: #10b981;
    --bg-page: #f5f5fb;
    --bg-panel: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --text-muted: #64748b;
    --shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.5),
              0 8px 16px -12px rgba(15, 23, 42, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.app-body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.1), transparent 45%),
                radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.12), transparent 35%),
                var(--bg-page);
}

.layout-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 48px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px -25px rgba(15, 23, 42, 1);
}

/* Default desktop styles - will be overridden by media queries */
.mobile-menu-toggle {
    display: none;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: none;
    opacity: 1;
    width: auto;
}

.navbar-actions {
    display: flex;
}

/* Ensure logo elements are visible on desktop */
.logo-mark {
    display: grid;
}

.logo-subtitle {
    display: block;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 26px;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.logo-subtitle {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

/* Desktop: Show normal menu, hide mobile toggle */
@media screen and (min-width: 769px) {
    .navbar-menu {
        display: flex !important;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-height: none !important;
        opacity: 1 !important;
    }

    .navbar-menu .menu-link {
        padding: 8px 16px !important;
        border-radius: 999px !important;
        text-align: center !important;
        font-size: 15px !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
    }

    .navbar-menu .menu-link:hover,
    .navbar-menu .menu-link.active {
        background: rgba(255, 255, 255, 0.18) !important;
        padding-left: 16px !important;
        transform: none !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .navbar-actions {
        display: flex !important;
    }

    .logo-mark {
        display: grid !important;
    }

    .logo-subtitle {
        display: block !important;
    }
    
    /* Hide mobile user info on desktop */
    .mobile-user-info {
        display: none !important;
    }
}

.menu-link {
    padding: 8px 16px;
    border-radius: 999px;
    color: rgba(248, 250, 252, 0.7);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.menu-link:hover,
.menu-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    min-height: 48px;
    position: relative;
    /* Transition kaldırıldı - hiçbir hareket yok */
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(79, 70, 229, 0.9);
}

.btn-secondary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(14, 165, 233, 0.9);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hover efektleri tamamen kaldırıldı - buton sabit kalıyor */
.btn:hover {
    /* Hiçbir değişiklik yok */
}

.btn-primary:hover {
    /* Hiçbir değişiklik yok */
}

.btn-secondary:hover {
    /* Hiçbir değişiklik yok */
}

.btn-ghost:hover {
    /* Hiçbir değişiklik yok */
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.user-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    font-weight: 600;
}

.user-pill span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.content-area {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 24px 80px;
}

.main-content {
    width: 100%;
    max-width: 1500px;
}

.page-shell {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-hero {
    background: linear-gradient(120deg, #ede9fe, #e0f2fe);
    border-radius: 32px;
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: 34px;
    margin-bottom: 4px;
}

.hero-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 14px;
    font-weight: 600;
}

.hero-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.insight-card {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.metric-card {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-card span {
    font-size: 13px;
    color: var(--text-muted);
}

.metric-card strong {
    font-size: 32px;
    font-weight: 700;
}

.metric-card small {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.insight-card span {
    font-size: 13px;
    color: var(--text-muted);
}

.insight-value {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0;
}

.badge {
    font-size: 13px;
    color: var(--text-muted);
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
}

.grid-left,
.grid-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel {
    background: var(--bg-panel);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.panel-head h2 {
    font-size: 20px;
}

.subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.week-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.week-day {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(244, 244, 249, 0.9);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.week-day:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.week-day.selected {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

.week-day.today {
    border-color: var(--accent);
}

.week-day .count {
    font-size: 13px;
    color: inherit;
    opacity: 0.9;
}

.hint {
    font-size: 13px;
    color: var(--text-muted);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.timeline-item .time {
    min-width: 70px;
    font-weight: 600;
}

.timeline-item .info span {
    font-size: 13px;
    color: var(--text-muted);
}

.status-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pill.status-bekliyor {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.status-tamamlandı {
    background: #d1fae5;
    color: #065f46;
}

.status-pill.status-iptal {
    background: #fee2e2;
    color: #991b1b;
}

.doctor-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-row {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.doctor-row h3 {
    font-size: 16px;
}

.doctor-metrics {
    display: flex;
    gap: 20px;
    margin-left: auto;
    font-size: 14px;
}

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand);
    font-weight: 600;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-list li {
    list-style: none;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mini-list span {
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* Classic dashboard layout (Home page) */
.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: var(--bg-panel);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.dashboard-header h1 {
    font-size: 28px;
}

.selected-date-info span {
    font-weight: 500;
    color: var(--text-muted);
}

.dashboard-content {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.week-calendar-sidebar {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-nav {
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand);
    cursor: pointer;
    font-weight: 600;
}

.week-label {
    font-weight: 600;
    color: var(--text-muted);
}

.week-days {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.week-day {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(244, 244, 249, 0.9);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.week-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.week-day.selected {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

.week-day.today {
    border-color: var(--accent);
}

.day-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-number {
    font-size: 24px;
    font-weight: 700;
}

.day-appointment-count {
    font-size: 13px;
    color: inherit;
    opacity: 0.85;
}

.doctors-panel {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctors-panel h2 {
    font-size: 22px;
    color: var(--text);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.doctor-card {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-header h3 {
    margin-bottom: 4px;
    font-size: 20px;
}

.doctor-specialty {
    font-size: 13px;
    color: var(--text-muted);
}

.doctor-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-value.success {
    color: var(--success);
}

.stat-value.warning {
    color: var(--warning);
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow: auto;
    padding-right: 6px;
}

.appointment-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.9);
}

.appointment-time {
    font-weight: 600;
}

.appointment-patient {
    font-size: 15px;
}

.form-actions-full {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 32px;
}

.form-actions-full .btn {
    min-width: 180px;
}

.appointment-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.appointment-status-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
}

.status-action {
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.status-action.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-action.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
}

.status-action.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.appointment-status.status-bekliyor,
.status-bekliyor {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.appointment-status.status-tamamlandı,
.status-tamamlandı {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.appointment-status.status-iptal,
.status-iptal {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.status-pill.status-islemdevamedilecek {
    background: #fef3c7;
    color: #92400e;
}

.empty-state.small {
    padding: 18px;
    font-size: 14px;
}

/* Calendar */
.calendar-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px;
    border-radius: 28px;
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calendar-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.calendar-board {
    background: transparent;
    border-radius: 32px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding-bottom: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.calendar-day {
    height: 140px;
    min-height: 140px;
    border-radius: 22px;
    border: 1px solid var(--border);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(248, 250, 252, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

.calendar-day:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.calendar-day.today {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, 0.25);
}

.calendar-day.selected {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.4);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.day-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.3);
    margin-top: 6px;
    overflow: hidden;
}

.day-bar span {
    display: block;
    height: 100%;
    background: var(--brand);
}

.calendar-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Appointment */
.appointment-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.appointment-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(120deg, #ede9fe, #e0f2fe);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow);
}

.appointment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
    gap: 24px;
}

.appointment-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dental-lab {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dental-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.procedure-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-groups-head h4 {
    margin-bottom: 4px;
    font-size: 16px;
}

.procedure-group-list {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 12px;
    min-height: 60px;
    background: rgba(248, 250, 252, 0.6);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.procedure-group-list.empty {
    color: var(--text-muted);
}

.procedure-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.06);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.procedure-group-item strong {
    font-size: 14px;
    color: var(--text);
}

.procedure-group-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.procedure-group-item .remove-group {
    border: none;
    background: rgba(239, 68, 68, 0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--error);
    font-size: 18px;
    cursor: pointer;
}

.procedure-groups-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.procedure-groups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-groups-list h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.procedure-group-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.procedure-teeth {
    font-size: 13px;
    color: var(--text-muted);
}

/* Patient Appointments Page */
.patient-appointments-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patient-appointments-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

.patient-appointments-hero h1 {
    color: white;
    margin-bottom: 4px;
}

.patient-appointments-hero .subtext {
    color: rgba(255, 255, 255, 0.9);
}

.patient-appointments-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.patient-appointments-stats .stat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.patient-appointments-stats .stat-badge span {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patient-appointments-stats .stat-badge strong {
    font-size: 24px;
    font-weight: 700;
}

.appointments-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.timeline-icon {
    font-size: 24px;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-card-timeline {
    background: var(--bg-panel);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow 0.2s ease;
}

.appointment-card-timeline:hover {
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
}

.appointment-card-timeline.future {
    border-left: 4px solid var(--accent);
}

.appointment-card-timeline.past {
    border-left: 4px solid var(--text-muted);
    opacity: 0.95;
}

.appointment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.appointment-date-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointment-date {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.appointment-time {
    font-size: 14px;
    color: var(--text-muted);
}

.appointment-doctor {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.appointment-doctor strong {
    font-size: 16px;
    color: var(--text);
}

.doctor-specialty {
    font-size: 13px;
    color: var(--text-muted);
}

.appointment-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.procedure-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-details-list h4 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.procedure-detail-item {
    padding: 12px 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--brand);
}

.procedure-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.procedure-info strong {
    font-size: 15px;
    color: var(--brand);
    font-weight: 600;
}

.procedure-teeth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tooth-badge-small {
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.procedure-simple {
    padding: 12px 16px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.procedure-simple strong {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-notes {
    padding: 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.appointment-notes strong {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.appointment-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.duration-badge {
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.action-link {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.action-link:hover {
    background: rgba(79, 70, 229, 0.15);
}

.btn-success {
    background: #10b981;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.appointment-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Doctor Monthly Summary */
.doctor-summary-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doctor-summary-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
}

.doctor-summary-hero h1 {
    color: white;
    margin-bottom: 4px;
}

.doctor-summary-hero .subtext {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.month-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
}

.month-icon {
    font-size: 18px;
}

.stat-badge-large {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-badge-large span {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge-large strong {
    font-size: 32px;
    font-weight: 700;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.metric-card-modern {
    background: var(--bg-panel);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.metric-icon.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.metric-icon.waiting {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.metric-icon.in-progress {
    background: rgba(79, 70, 229, 0.15);
    color: var(--brand);
}

.metric-icon.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.metric-percentage {
    font-size: 12px;
    color: var(--text-muted);
}

.appointment-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(79, 70, 229, 0.15);
}

.filter-btn.active {
    background: var(--brand);
    color: white;
}

.appointments-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.appointment-card-summary {
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appointment-card-header-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.appointment-date-time-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointment-date-summary {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.appointment-time-summary {
    font-size: 13px;
    color: var(--text-muted);
}

.appointment-patient-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.appointment-patient-summary strong {
    font-size: 16px;
    color: var(--text);
}

.patient-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.appointment-card-body-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.procedure-details-list-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.procedure-item-summary {
    padding: 10px 14px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--brand);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.procedure-item-summary strong {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
}

.procedure-teeth-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tooth-badge-tiny {
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
}

.procedure-simple-summary {
    padding: 10px 14px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.procedure-simple-summary strong {
    font-size: 14px;
    color: var(--text);
}

.appointment-notes-summary {
    padding: 10px 14px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Reports Page Enhancements */
.metric-card-enhanced {
    background: var(--bg-panel);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
}

.metric-card-enhanced.success {
    border-left: 4px solid #10b981;
}

.metric-card-enhanced.warning {
    border-left: 4px solid #fbbf24;
}

.metric-card-enhanced.error {
    border-left: 4px solid #ef4444;
}

.metric-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.1);
    display: grid;
    place-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.metric-content-enhanced {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label-enhanced {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-enhanced {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.metric-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

.period-btn {
    padding: 14px 24px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(15, 23, 42, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.period-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.period-btn:hover::before {
    left: 100%;
}

.period-btn:hover {
    background: rgba(30, 41, 59, 0.98);
    color: white;
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.period-btn.active {
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    color: white;
    border-color: var(--brand);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.period-btn.active:hover {
    background: linear-gradient(135deg, #6366f1 0%, var(--brand) 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.period-btn span {
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.period-btn:hover span {
    transform: scale(1.1);
}

.period-btn.active span {
    transform: scale(1.15);
}

.chart-container {
    position: relative;
    height: 400px;
    padding: 20px;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.status-item:hover {
    transform: translateX(4px);
}

.status-item.completed {
    border-left: 4px solid #10b981;
}

.status-item.waiting {
    border-left: 4px solid #fbbf24;
}

.status-item.cancelled {
    border-left: 4px solid #ef4444;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-info strong {
    font-size: 15px;
    color: var(--text);
}

.status-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.status-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.dental-chart-grid {
    width: 100%;
    min-height: 520px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 40px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dental-svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.mouth-outline {
    opacity: 0.3;
}

.gum-line {
    transition: stroke-width 0.3s ease;
}

.gum-line.upper {
    stroke: rgba(236, 72, 153, 0.18);
}

.gum-line.lower {
    stroke: rgba(14, 165, 233, 0.18);
}

.tooth-shape {
    cursor: pointer;
    /* Transition kaldırıldı - hareket yok */
    transform-origin: center;
}

.tooth-shape .tooth-path {
    /* Transition kaldırıldı - hareket yok */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    stroke-width: 2.2;
}

.tooth-shape .tooth-label {
    pointer-events: none;
    user-select: none;
    /* Transition kaldırıldı - hareket yok */
    font-size: 14px;
}

.tooth-shape:hover {
    /* Transform kaldırıldı - diş sabit kalıyor */
    z-index: 10;
}

.tooth-shape:hover .tooth-path {
    stroke: var(--brand);
    stroke-width: 3;
    fill: rgba(79, 70, 229, 0.12);
    filter: drop-shadow(0 5px 15px rgba(79, 70, 229, 0.35));
}

.tooth-shape:hover .tooth-label {
    fill: var(--brand);
    font-size: 16px;
    font-weight: 800;
}

.tooth-shape.active .tooth-path {
    fill: rgba(79, 70, 229, 0.2);
    stroke: var(--brand);
    stroke-width: 3.5;
    filter: drop-shadow(0 7px 20px rgba(79, 70, 229, 0.5));
}

.tooth-shape.active .tooth-label {
    fill: var(--brand);
    font-weight: 900;
    font-size: 16px;
}

/* Patients */
.patients-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patient-hero,
.doctor-hero,
.report-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
}

.report-hero h1 {
    color: white;
    margin-bottom: 4px;
}

.report-hero .hero-label {
    color: rgba(255, 255, 255, 0.9);
}

.report-hero .subtext {
    color: rgba(255, 255, 255, 0.9);
}

.patient-stats,
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.patient-filters {
    padding: 20px;
}

.patient-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.patient-collection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.patient-card-modern {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.patient-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.12);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--brand);
}

.patient-avatar.with-photo {
    padding: 0;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: transparent;
    overflow: hidden;
}

.patient-avatar.with-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.patient-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.patient-meta span {
    font-size: 12px;
    color: var(--text-muted);
}

.patient-meta strong {
    font-size: 14px;
}

.patient-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.patient-dental-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.patient-dental-modal.active {
    display: flex;
}

.patient-dental-modal-content {
    background: var(--bg-panel);
    border-radius: 24px;
    padding: 24px;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.patient-dental-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(15, 23, 42, 0.05);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.patient-dental-chart {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.8);
}

.patient-dental-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
    flex-wrap: wrap;
}

.patient-dental-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patient-dental-row {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 6px;
}

.patient-tooth {
    position: relative;
    padding: 8px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    text-align: center;
    font-size: 12px;
}

.patient-tooth.highlighted {
    border-color: var(--brand);
    background: rgba(79, 70, 229, 0.08);
}

.patient-tooth-check {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    color: var(--brand);
}

.patient-procedure-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patient-procedure-item {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(79, 70, 229, 0.05);
}

.patient-tooth-detail {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.9);
    min-height: 120px;
}

.tooth-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tooth-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tooth-detail-list li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.procedure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    display: inline-block;
}

/* Doctors */
.doctor-roster {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.doctor-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.doctor-card-pro {
    border-radius: 32px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doctor-card-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(14, 165, 233, 0.2));
    padding: 20px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.doctor-code {
    font-weight: 700;
    color: var(--brand);
    background: rgba(79, 70, 229, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
}

.doctor-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.doctor-meta-grid span {
    font-size: 12px;
    color: var(--text-muted);
}

.doctor-meta-grid strong {
    font-size: 14px;
}

.doctor-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-badges span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.doctor-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doctor-detail {
    margin-top: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.doctor-detail.visible {
    opacity: 1;
    max-height: 400px;
}

.doctor-detail span {
    font-size: 12px;
    color: var(--text-muted);
}

.doctor-detail strong {
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.doctor-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
}

.doctor-info h3 {
    margin-bottom: 4px;
}

.doctor-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* Reports */
.reports-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-period {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 768px) {
    .report-period {
        justify-content: center;
        width: 100%;
    }
    
    .period-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

.reports-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.report-chart canvas {
    width: 100%;
}

.report-list .mini-list .pill {
    background: rgba(79, 70, 229, 0.12);
    color: var(--brand);
}

/* Settings */
.settings-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(120deg, #e0f2fe, #ede9fe);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--bg-panel);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.toggle-row:last-child {
    border-bottom: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(148, 163, 184, 0.5);
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
}

.switch input:checked + .slider {
    background-color: var(--brand);
}

.switch input:checked + .slider:before {
    transform: translateX(22px);
}

.theme-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.theme-pill input {
    accent-color: var(--brand);
}

.theme-pill span {
    font-size: 14px;
}

.color-picker {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 4px;
    background: var(--bg-panel);
}

.data-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Notifications */
.notifications-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notification-hero {
    padding: 24px 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: white;
}

.notification-hero h1 {
    color: white;
    margin-bottom: 4px;
}

.notification-hero .subtext {
    color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-badge span {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge strong {
    font-size: 24px;
    font-weight: 700;
}

.stat-badge.urgent {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

.notifications-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.notification-card {
    background: var(--bg-panel);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: box-shadow 0.2s ease;
}

.notification-card:hover {
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.3);
}

.notification-card.urgent {
    border-left: 4px solid var(--error);
    background: linear-gradient(to right, rgba(239, 68, 68, 0.05), var(--bg-panel));
}

.notification-card.past {
    border-left: 4px solid var(--text-muted);
    background: linear-gradient(to right, rgba(100, 116, 139, 0.05), var(--bg-panel));
    opacity: 0.85;
}

.notification-card.past .notification-countdown {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.notification-time-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
}

.notification-time-badge strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.notification-time-badge small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notification-countdown {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.notification-countdown.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    animation: pulse-urgent 2s ease-in-out infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notification-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-patient {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-patient .patient-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    display: grid;
    place-items: center;
    font-weight: 700;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-patient h3 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--text);
}

.doctor-name {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-procedure {
    padding: 12px 16px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.procedure-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-procedure strong {
    font-size: 15px;
    color: var(--brand);
    font-weight: 600;
}

.notification-teeth {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teeth-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teeth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tooth-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.notification-notes {
    padding: 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
}

.notification-notes p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.notification-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-link {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.action-link:hover {
    background: rgba(79, 70, 229, 0.15);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-panel);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Forms & inputs */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-control,
textarea,
select,
input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    font-size: 15px;
    background: var(--bg-panel);
}

/* Password input - belirgin siyah noktalar */
input[type="password"],
.form-control[type="password"] {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #000 !important;
    -webkit-text-security: disc;
    text-security: disc;
}

.form-control:focus,
textarea:focus,
select:focus,
input:focus {
    outline: 2px solid var(--brand-soft);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 140px;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.18), transparent 40%),
                #09090f;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form label {
    color: rgba(248, 250, 252, 0.9);
    font-weight: 600;
    font-size: 14px;
}

.login-form input {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobil tarayıcılar için autofill durumunda renk düzeltmesi */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus,
.login-form input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
}

/* Password input - belirgin siyah noktalar */
.login-form input[type="password"],
input[type="password"],
.form-control[type="password"] {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    -webkit-text-security: disc;
    text-security: disc;
}

/* Login sayfasında beyaz arka plan için siyah noktalar */
.login-form input[type="password"] {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    font-size: 20px;
    letter-spacing: 3px;
}

/* Password için autofill düzeltmesi */
.login-form input[type="password"]:-webkit-autofill,
.login-form input[type="password"]:-webkit-autofill:hover,
.login-form input[type="password"]:-webkit-autofill:focus,
.login-form input[type="password"]:-webkit-autofill:active {
    -webkit-text-fill-color: #000 !important;
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
}

/* Doktor login sayfası için */
body.login-page .form-group input[type="password"] {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(79, 70, 229, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.login-form .btn-block {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #6366f1);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
}

.login-form .btn-block:active {
    transform: translateY(0);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #fecaca;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(10px);
}

.alert-error p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    color: #d1fae5;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

thead {
    background: rgba(248, 250, 252, 0.8);
}

th,
td {
    padding: 14px 18px;
    font-size: 14px;
    text-align: left;
}

tbody tr + tr {
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1200px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-layout,
    .appointment-layout,
    .reports-body {
        grid-template-columns: 1fr;
    }

    .dental-chart-grid {
        padding: 6px;
    }
}

@media (max-width: 600px) {
    .app-navbar {
        padding: 16px 24px;
    }

    .navbar-menu {
        justify-content: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .doctor-metrics {
        flex-direction: column;
        align-items: flex-start;
    }

    .calendar-weekdays {
        display: none;
    }
}

/* Patient Edit Page Styles */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.patient-detail-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-panel);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.tab-btn:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand);
    transform: translateY(-2px);
}

.tab-btn:active {
    transform: translateY(0);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active:hover {
    background: linear-gradient(135deg, #6366f1 0%, var(--brand) 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.tab-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.tab-btn.active .tab-icon {
    transform: scale(1.15);
}

.tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .patient-detail-tabs {
        flex-direction: column;
        gap: 6px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tab-text {
        white-space: normal;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.patient-form {
    background: var(--bg-panel);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-actions-bottom {
    position: sticky;
    bottom: 0;
    background: var(--bg-panel);
    padding: 24px 32px;
    margin: 32px -32px -32px;
    border-top: 2px solid var(--border);
    border-radius: 0 0 24px 24px;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Photo Upload Styles */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.photo-preview {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    width: 100%;
    height: 100%;
}

.photo-placeholder span {
    font-size: 48px;
}

.photo-placeholder p {
    font-size: 14px;
    margin: 0;
}

.photo-upload-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-input {
    display: none;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Dental Actions Top */
.dental-actions-top {
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.dental-actions-top .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Appointments History Styles */
.appointments-history-panel {
    margin-top: 0;
}

.appointments-history {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
}

.appointment-history-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.appointment-history-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--brand-soft);
}

.appointment-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.appointment-date-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, #6366f1 100%);
    border-radius: 12px;
    color: white;
}

.appointment-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.appointment-time {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.appointment-history-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointment-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
}

.appointment-detail-row strong {
    color: var(--text);
    font-weight: 600;
}

.appointment-detail-row span:not(.detail-label) {
    color: var(--text);
    flex: 1;
}

.tooth-numbers-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.appointment-notes {
    padding: 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-badge.status-tamamlandı,
.status-badge.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.status-badge.status-bekliyor,
.status-badge.status-waiting,
.status-badge.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.status-badge.status-iptal,
.status-badge.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(14, 165, 233, 0.3));
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(14, 165, 233, 0.4));
    transform: rotate(90deg);
}

.mobile-menu-toggle span {
    display: block;
    transition: transform 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    display: flex !important;
    opacity: 1;
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    font-weight: 300;
    line-height: 1;
}

.mobile-menu-close:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 100px 24px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-menu-item {
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-item:hover::before {
    left: 100%;
}

.mobile-menu-item:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(14, 165, 233, 0.25));
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.mobile-menu-item.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(14, 165, 233, 0.4));
    border-color: rgba(79, 70, 229, 0.6);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transform: translateX(4px);
}

.mobile-menu-item.active::after {
    content: '→';
    position: absolute;
    right: 20px;
    font-size: 20px;
    opacity: 0.8;
}

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .content-area {
        padding: 24px 16px 60px;
    }

    .main-content {
        max-width: 100%;
    }

    .page-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .week-calendar-sidebar {
        order: -1;
    }

    .calendar-layout,
    .appointment-layout,
    .reports-body,
    .page-grid {
        grid-template-columns: 1fr;
    }

    .doctors-grid,
    .doctor-showcase,
    .doctor-stats,
    .patient-stats,
    .report-grid,
    .summary-metrics,
    .insights-grid,
    .calendar-metrics {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .patient-meta,
    .doctor-meta-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .appointment-item {
        grid-template-columns: 60px 1fr auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .doctor-card,
    .patient-card-modern,
    .notification-card {
        padding: 20px;
    }
}

/* Mobile (max-width: 768px) - CRITICAL: Must override all desktop styles */
@media screen and (max-width: 768px) {
    /* Navbar - Mobile View - FORCE MOBILE STYLES */
    .app-navbar {
        padding: 12px 16px !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        position: relative !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
    }

    .navbar-left {
        flex: 1 !important;
        min-width: 0 !important;
        gap: 0 !important;
        order: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Mobile: Hide logo mark and subtitle, show only title */
    .logo-mark,
    .logo-mark.mobile-hidden {
        display: none !important;
    }

    .logo-subtitle,
    .logo-subtitle.mobile-hidden {
        display: none !important;
    }

    .logo-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        letter-spacing: -0.3px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    /* Mobile: Hide normal menu, show as dropdown */
    .navbar-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
        backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        flex-direction: column !important;
        padding: 0 !important;
        gap: 0 !important;
        z-index: 9999 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        height: 0 !important;
        pointer-events: none !important;
        transition: none !important;
    }

    .navbar-menu.mobile-open {
        max-height: 600px !important;
        height: auto !important;
        opacity: 1 !important;
        padding: 12px 0 !important;
        overflow: visible !important;
        overflow-y: auto !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 200px !important;
        pointer-events: auto !important;
        z-index: 10000 !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    
    /* Force menu to be visible when mobile-open class is present */
    .navbar-menu.mobile-open[style*="max-height"] {
        max-height: 600px !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Mobile User Info - Only visible in mobile menu */
    .mobile-user-info {
        display: none !important;
    }
    
    .navbar-menu.mobile-open .mobile-user-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 20px !important;
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2)) !important;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 8px !important;
    }
    
    .mobile-user-pill {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .mobile-user-initial {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(14, 165, 233, 0.4)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        color: white !important;
        flex-shrink: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .mobile-user-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        flex: 1 !important;
    }
    
    .mobile-user-name {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: white !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    .mobile-user-role {
        font-size: 13px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        font-weight: 500 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .mobile-logout-form {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .mobile-logout-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 20px !important;
        background: rgba(239, 68, 68, 0.2) !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
        border-radius: 12px !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .mobile-logout-btn:hover {
        background: rgba(239, 68, 68, 0.3) !important;
        border-color: rgba(239, 68, 68, 0.5) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    }
    
    .mobile-logout-btn span:first-child {
        font-size: 18px !important;
    }
    
    .navbar-menu .menu-link {
        width: 100% !important;
        padding: 16px 20px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-align: left !important;
        font-size: 16px !important;
        background: transparent !important;
        border-left: none !important;
        border-right: none !important;
        transition: background 0.2s ease !important;
        color: rgba(255, 255, 255, 0.9) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-decoration: none !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10001 !important;
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.3) !important;
        touch-action: manipulation !important;
    }

    .navbar-menu .menu-link:hover,
    .navbar-menu .menu-link.active {
        background: rgba(79, 70, 229, 0.2) !important;
        color: #fff !important;
        padding-left: 24px !important;
    }
    
    /* Ensure menu links are visible when menu is open */
    .navbar-menu.mobile-open .menu-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        position: relative !important;
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.3) !important;
        touch-action: manipulation !important;
    }

    /* Mobile: Show hamburger menu button on the right */
    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto !important;
        z-index: 10001 !important;
        position: relative !important;
        order: 2 !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(79, 70, 229, 0.3) !important;
        touch-action: manipulation !important;
        height: 44px !important;
        min-width: 44px !important;
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(14, 165, 233, 0.2)) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        font-size: 22px !important;
        cursor: pointer !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* Ensure toggle button is always clickable, even when menu is open */
    .mobile-menu-toggle.active {
        z-index: 10001 !important;
        pointer-events: auto !important;
    }
    
    .navbar-menu.mobile-open ~ .mobile-menu-toggle,
    .app-navbar .mobile-menu-toggle {
        z-index: 10001 !important;
        pointer-events: auto !important;
        position: relative !important;
    }

    /* Mobile: Hide user actions */
    .navbar-actions,
    .navbar-actions.mobile-hidden {
        display: none !important;
    }

    /* Mobile: Ensure navbar layout */
    .app-navbar {
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    /* Force mobile view for navbar elements */
    .navbar-left .logo-mark,
    .navbar-left .logo-mark.mobile-hidden,
    .logo-mark,
    .logo-mark.mobile-hidden {
        display: none !important;
    }

    .navbar-left .logo-subtitle,
    .navbar-left .logo-subtitle.mobile-hidden,
    .logo-subtitle,
    .logo-subtitle.mobile-hidden {
        display: none !important;
    }

    .navbar-left {
        gap: 8px !important;
    }

    .navbar-left > div:first-child {
        display: none !important;
    }

    .navbar-left > div:last-child .logo-subtitle {
        display: none !important;
    }

    /* Ensure mobile menu toggle is visible and properly styled */
    .mobile-menu-toggle {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    /* Override any desktop styles that might interfere */
    .app-navbar * {
        box-sizing: border-box;
    }

    .user-pill {
        padding: 6px 10px;
        gap: 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .user-initial {
        width: 36px;
        height: 36px;
        font-size: 15px;
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(14, 165, 233, 0.3));
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .user-pill span {
        font-size: 11px;
        opacity: 0.9;
    }

    .user-pill p {
        font-size: 13px;
        font-weight: 600;
    }

    .btn {
        padding: 11px 18px;
        font-size: 13px;
        min-height: 44px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-ghost {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }

    /* Content */
    .content-area {
        padding: 20px 16px 80px;
    }

    .page-shell {
        gap: 24px;
    }

    .page-hero {
        padding: 24px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(237, 233, 254, 0.95), rgba(224, 242, 254, 0.95));
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
    }

    .page-hero h1 {
        font-size: 26px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .hero-label {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .hero-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 16px;
        gap: 12px;
    }

    .hero-actions .btn {
        flex: 1;
        min-width: 0;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-actions .btn:active {
        transform: scale(0.98);
    }

    /* Panels and Cards */
    .panel {
        padding: 24px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        background: var(--bg-panel);
    }

    .panel-head h2 {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .insight-card,
    .metric-card,
    .settings-card {
        padding: 24px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .insight-card:active,
    .metric-card:active {
        transform: scale(0.98);
    }

    .metric-card strong,
    .insight-value {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: -1px;
    }

    /* Grids */
    .doctors-grid,
    .doctor-showcase,
    .patient-stats,
    .report-grid,
    .summary-metrics,
    .insights-grid,
    .calendar-metrics,
    .notifications-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .week-board {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }

    .week-day {
        padding: 12px;
        border-radius: 16px;
    }

    /* Calendar */
    .calendar-toolbar {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .calendar-weekdays {
        display: none;
    }

    .calendar-days {
        gap: 8px;
    }

    .calendar-day {
        height: 100px;
        min-height: 100px;
        padding: 10px;
        border-radius: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .dashboard-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .week-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }

    .week-days {
        gap: 8px;
    }

    .week-day {
        padding: 12px;
    }

    .day-number {
        font-size: 20px;
    }

    /* Forms */
    .form-container {
        padding: 20px 16px;
    }

    .patient-form {
        padding: 24px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .form-group {
        gap: 8px;
    }

    .form-group label {
        font-weight: 600;
        font-size: 14px;
        color: var(--text);
    }

    .form-control,
    textarea,
    select,
    input {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 14px;
        border: 1.5px solid var(--border);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-panel);
    }

    .form-control:focus,
    textarea:focus,
    select:focus,
    input:focus {
        outline: none;
        border-color: var(--brand);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        transform: translateY(-1px);
    }

    .form-actions,
    .form-actions-bottom {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        margin: 24px -24px -24px;
        background: rgba(248, 250, 252, 0.6);
        border-top: 1px solid var(--border);
    }

    .form-actions .btn,
    .form-actions-bottom .btn {
        width: 100%;
        min-width: 0;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-actions .btn:active,
    .form-actions-bottom .btn:active {
        transform: scale(0.98);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Tables */
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    th,
    td {
        padding: 14px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    thead {
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    }

    /* Timeline */
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .timeline-item .time {
        min-width: auto;
        width: 100%;
    }

    /* Doctor Cards */
    .doctor-card,
    .doctor-card-pro {
        padding: 20px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .doctor-card:active,
    .doctor-card-pro:active {
        transform: scale(0.98);
    }

    .doctor-header h3 {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .doctor-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 18px;
        font-weight: 700;
    }

    .appointments-list {
        max-height: 280px;
    }

    .appointment-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .appointment-item:active {
        transform: scale(0.98);
    }

    .appointment-time {
        font-weight: 700;
        font-size: 15px;
        color: var(--brand);
    }

    .appointment-patient {
        font-size: 15px;
        font-weight: 600;
    }

    /* Patient Cards */
    .patient-card-modern {
        padding: 20px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .patient-card-modern:active {
        transform: scale(0.98);
    }

    .patient-main {
        flex-wrap: wrap;
        gap: 12px;
    }

    .patient-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border: 2px solid rgba(79, 70, 229, 0.2);
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    }

    .patient-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .patient-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .patient-actions .btn {
        flex: 1;
        min-width: 0;
    }

    /* Appointment Cards */
    .appointment-card-timeline,
    .appointment-card-summary {
        padding: 20px;
        border-radius: 24px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .appointment-card-timeline:active,
    .appointment-card-summary:active {
        transform: scale(0.98);
    }

    .appointment-card-header,
    .appointment-card-header-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 20px;
    }

    .appointment-date-time,
    .appointment-date-time-summary {
        width: 100%;
    }

    .appointment-date {
        font-size: 18px;
        font-weight: 700;
    }

    .appointment-time {
        font-size: 15px;
        color: var(--text-muted);
    }

    .appointment-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 20px;
    }

    .appointment-actions-group {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .appointment-actions-group .btn,
    .appointment-actions-group .action-link {
        flex: 1;
        min-width: 0;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .appointment-actions-group .btn:active,
    .appointment-actions-group .action-link:active {
        transform: scale(0.98);
    }

    /* Hero Sections */
    .patient-hero,
    .doctor-hero,
    .report-hero,
    .patient-appointments-hero,
    .doctor-summary-hero,
    .notification-hero,
    .settings-hero {
        padding: 24px;
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .patient-hero h1,
    .doctor-hero h1,
    .report-hero h1,
    .patient-appointments-hero h1,
    .doctor-summary-hero h1,
    .notification-hero h1 {
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .patient-appointments-stats,
    .hero-stats {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .stat-badge,
    .stat-badge-large {
        padding: 16px 20px;
        border-radius: 16px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .stat-badge:active,
    .stat-badge-large:active {
        transform: scale(0.98);
    }

    .stat-badge strong,
    .stat-badge-large strong {
        font-size: 24px;
        font-weight: 700;
    }

    /* Dental Chart */
    .dental-chart-grid {
        padding: 12px;
        min-height: 400px;
    }

    .dental-svg {
        transform: scale(0.8);
        transform-origin: center;
    }

    /* Tabs */
    .patient-detail-tabs {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }

    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .tab-text {
        white-space: normal;
    }

    /* Photo Upload */
    .photo-preview {
        width: 150px;
        height: 150px;
    }

    .photo-upload-controls {
        flex-direction: column;
        width: 100%;
    }

    .photo-upload-controls .btn {
        width: 100%;
    }

    /* Login */
    .login-card {
        padding: 24px;
        margin: 16px;
        border-radius: 20px;
    }

    /* Reports */
    .report-period {
        flex-direction: column;
        width: 100%;
    }

    .period-btn {
        width: 100%;
        justify-content: center;
    }

    .chart-container {
        height: 300px;
        padding: 12px;
    }

    /* Settings */
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Notifications */
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notification-time-badge {
        width: 100%;
    }

    .notification-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-actions {
        width: 100%;
        flex-direction: column;
    }

    .notification-actions .btn,
    .notification-actions .action-link {
        width: 100%;
    }

    /* Empty State */
    .empty-state {
        padding: 60px 20px;
        border-radius: 24px;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(241, 245, 249, 0.8));
        border: 1px solid rgba(226, 232, 240, 0.8);
    }

    .empty-icon {
        font-size: 56px;
        opacity: 0.6;
    }

    .empty-state h2 {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }

    .empty-state p {
        font-size: 15px;
        color: var(--text-muted);
    }

    /* Dashboard (Home/Index) - Mobile */
    .dashboard-container {
        gap: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .selected-date-info {
        font-size: 14px;
    }

    .week-calendar-sidebar {
        padding: 20px;
        border-radius: 20px;
    }

    .week-navigation {
        margin-bottom: 16px;
    }

    .week-days {
        gap: 10px;
    }

    .week-day {
        padding: 14px;
        border-radius: 16px;
    }

    .day-name {
        font-size: 13px;
    }

    .day-number {
        font-size: 22px;
    }

    .day-appointment-count {
        font-size: 12px;
    }

    .doctors-panel h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .doctors-grid {
        gap: 16px;
    }

    .doctor-card {
        padding: 20px;
    }

    .doctor-header h3 {
        font-size: 18px;
    }

    .doctor-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 18px;
    }

    .appointments-list {
        max-height: 300px;
        gap: 12px;
    }

    .appointment-item {
        padding: 14px;
        border-radius: 14px;
    }

    .appointment-status-form {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }

    .status-action {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    /* Calendar Page - Mobile - REDESIGNED */
    .calendar-shell {
        gap: 16px;
        padding: 0 4px;
    }

    .calendar-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .calendar-toolbar h1 {
        font-size: 24px;
        margin: 0;
    }

    .calendar-navigation {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .calendar-navigation .btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }

    .calendar-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .metric-card {
        padding: 16px;
        border-radius: 16px;
    }

    .metric-card strong {
        font-size: 24px;
    }

    .calendar-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .calendar-board {
        padding: 12px 8px;
        border-radius: 20px;
        order: 1;
    }

    .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        margin-bottom: 8px;
        padding: 0 4px;
    }

    .calendar-weekdays > div {
        font-size: 12px;
        font-weight: 600;
        text-align: center;
        padding: 8px 4px;
        color: var(--text-muted);
    }

    .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        padding: 0 4px;
    }

    .calendar-day {
        height: 90px;
        min-height: 90px;
        padding: 8px 4px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
        align-items: center;
        justify-content: flex-start;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .calendar-day .day-number {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .calendar-day .day-appointments {
        width: 100%;
        margin-top: auto;
    }

    .calendar-day .appointment-count {
        font-size: 10px;
        display: block;
        text-align: center;
        margin-bottom: 4px;
    }

    .calendar-day .day-bar {
        height: 3px;
        background: rgba(79, 70, 229, 0.1);
        border-radius: 2px;
        overflow: hidden;
        margin-top: 4px;
    }

    .calendar-day .day-bar span {
        display: block;
        height: 100%;
        background: var(--brand);
        border-radius: 2px;
    }

    .calendar-day.today {
        background: rgba(79, 70, 229, 0.1);
        border: 2px solid var(--brand);
    }

    .calendar-day.selected {
        background: rgba(79, 70, 229, 0.2);
        border: 2px solid var(--brand);
    }

    .calendar-day.other-month {
        opacity: 0.4;
    }

    .calendar-side {
        order: 2;
        width: 100%;
    }

    .calendar-side .panel {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .calendar-side .panel-head h2 {
        font-size: 18px;
        margin: 0 0 8px 0;
    }

    .calendar-side .timeline {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .calendar-side .timeline-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: var(--bg-panel);
        border-radius: 12px;
        border: 1px solid var(--border);
    }

    .calendar-side .timeline-item .time {
        font-size: 14px;
        font-weight: 700;
        color: var(--brand);
        min-width: 50px;
    }

    .calendar-side .timeline-item .info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .calendar-side .timeline-item .info strong {
        font-size: 15px;
        color: var(--text);
    }

    .calendar-side .timeline-item .info span {
        font-size: 13px;
        color: var(--text-muted);
    }

    /* Appointment Create Page - Mobile */
    .appointment-shell {
        gap: 20px;
    }

    .appointment-hero {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-hero h1 {
        font-size: 24px;
    }

    .appointment-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .appointment-card {
        padding: 20px;
    }

    .dental-lab {
        margin-top: 20px;
    }

    .dental-chart-grid {
        padding: 16px;
        min-height: 400px;
    }

    /* Patient Index Page - Mobile */
    .patients-shell {
        gap: 20px;
    }

    .patient-hero {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .patient-hero h1 {
        font-size: 24px;
    }

    .patient-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .patient-filters {
        padding: 16px;
    }

    .patient-search {
        flex-direction: column;
        gap: 12px;
    }

    .patient-search .form-control,
    .patient-search .btn {
        width: 100%;
    }

    .patient-collection {
        gap: 16px;
    }

    .patient-card-modern {
        padding: 20px;
    }

    .patient-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .patient-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .patient-meta {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .patient-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .patient-actions .btn {
        width: 100%;
    }

    /* Login Pages */
    .login-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-container {
        width: 100%;
        max-width: 100%;
    }

    .login-card {
        padding: 32px 24px;
        margin: 0;
        border-radius: 24px;
        max-width: 100%;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    .login-form {
        gap: 18px;
    }

    .login-form input {
        padding: 16px 18px;
        font-size: 16px;
    }

    .login-form .btn-block {
        padding: 18px;
        font-size: 17px;
        min-height: 56px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .content-area {
        padding: 16px 12px 80px;
    }

    .page-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .panel,
    .insight-card,
    .metric-card {
        padding: 20px;
        border-radius: 20px;
    }

    .panel-head h2 {
        font-size: 18px;
    }

    .metric-card strong,
    .insight-value {
        font-size: 28px;
    }

    .btn {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 48px;
    }

    .calendar-day {
        height: 90px;
        min-height: 90px;
        padding: 10px;
        border-radius: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .week-day {
        padding: 12px;
        border-radius: 16px;
    }

    .day-number {
        font-size: 20px;
    }

    .form-container {
        padding: 16px 12px;
    }

    .patient-form {
        padding: 20px;
        border-radius: 20px;
    }

    .form-control,
    textarea,
    select,
    input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .dental-chart-grid {
        padding: 12px;
        min-height: 320px;
        border-radius: 20px;
    }

    .dental-svg {
        transform: scale(0.75);
    }

    .photo-preview {
        width: 140px;
        height: 140px;
        border-radius: 16px;
    }

    .login-card {
        padding: 24px;
        margin: 16px;
        border-radius: 20px;
    }

    .mobile-menu-items {
        padding: 80px 20px 40px;
    }

    .mobile-menu-item {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* Login Pages - Small Mobile */
    .login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-header p {
        font-size: 13px;
    }

    .login-form {
        gap: 16px;
    }

    .login-form input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .login-form .btn-block {
        padding: 16px;
        font-size: 16px;
        min-height: 52px;
    }

    /* Dashboard - Small Mobile */
    .dashboard-header {
        padding: 16px;
    }

    .dashboard-header h1 {
        font-size: 20px;
    }

    .week-calendar-sidebar {
        padding: 16px;
    }

    .week-day {
        padding: 12px;
    }

    .day-number {
        font-size: 20px;
    }

    .doctor-card {
        padding: 16px;
    }

    .doctor-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Calendar - Small Mobile */
    .calendar-toolbar {
        padding: 16px;
    }

    .calendar-metrics {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        height: 85px;
        min-height: 85px;
        padding: 10px 6px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Patient Index - Small Mobile */
    .patient-stats {
        grid-template-columns: 1fr;
    }

    .patient-card-modern {
        padding: 16px;
    }

    /* MyAppointments Page - Mobile */
    .doctor-appointments-shell {
        padding: 16px;
        gap: 20px;
    }

    .doctor-appointments-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .doctor-appointments-header h1 {
        font-size: 22px;
    }

    .appointments-stats-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .stat-item-small {
        width: 100%;
    }

    .calendar-navigation-bar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .nav-date-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .current-period {
        width: 100%;
        text-align: center;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .view-toggle .btn {
        flex: 1;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .content-area {
        padding: 16px 12px 40px;
    }

    .page-hero {
        padding: 16px 20px;
    }

    .calendar-day {
        height: 80px;
        min-height: 80px;
        box-sizing: border-box;
        overflow: hidden;
    }
}

