/* KlinikMod - TimeFrame Aesthetic Redesign */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8687C3; 
    --primary-light: #A5A6D8;
    --primary-dark: #6E6F9F;
    --bg-page: #EDF0F5; /* Darker background as requested */
    --bg-white: #FFFFFF;
    --text-main: #2D2E42;
    --text-muted: #7E7F9A;
    --accent-lime: #BEF264; /* Vibrant Pistachio-Lime */
    --accent-lime-dark: #a3d947;
    --accent-lime-soft: rgba(190, 242, 100, 0.15);
    --accent-coral: #FF4B5C; /* Vivid Premium Red */
    --accent-blue: #99C1FF;
    --sidebar-w: 120px;
    --radius-lg: 20px; /* Standard premium rounding */
    --radius-md: 12px;
    
    /* Standard Premium Depth Shadows */
    --p-shadow-soft: 0 10px 40px rgba(45, 46, 66, 0.05);
    --p-shadow-med: 0 15px 50px rgba(45, 46, 66, 0.08);
    --p-border-light: 1px solid rgba(134, 135, 195, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow: hidden; /* Sayfa genelinde scroll kaldÄ±rÄ±ldÄ± */
    height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    padding: 20px; /* Reduced for more space */
    gap: 20px;
    overflow: hidden;
    background: var(--bg-page);
}

/* Sidebar (TimeFrame Style) */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0 25px 0; /* BoÅŸluklar dengelendi */
    height: 100%;
    box-shadow: var(--p-shadow-soft);
    border: var(--p-border-light);
    flex-shrink: 0;
}

.logo-sidebar {
    margin-bottom: 25px; /* Logo ve menÃ¼ arasÄ± mesafe eÅŸitledi */
}

.logo-icon-circle {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Ã–ÄŸeler arasÄ± eÅŸit boÅŸluk */
    list-style: none;
    flex-grow: 1;
}

.nav-link-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-link-icon:hover {
    color: var(--primary);
    background: rgba(134, 135, 195, 0.05);
    transform: translateY(-2px);
}

.nav-link-icon.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(134, 135, 195, 0.3);
}

.nav-label {
    display: none;
}

/* --- Premium Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(134, 135, 195, 0.03);
}
::-webkit-scrollbar-thumb {
    background: rgba(134, 135, 195, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(134, 135, 195, 0.4);
}

/* Main Wrapper */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow: hidden; 
    min-height: 0;
}

/* Top Navigation Bar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Padding reduced to give more space to content */
    background: transparent;
}

.nav-brand h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.view-toggles {
    display: flex;
    background: rgba(134, 135, 195, 0.05);
    padding: 6px;
    border-radius: 50px;
    gap: 4px;
}

.toggle-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dashboard Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* Left Widgets */
.left-widgets {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap */
    height: 100%;
    overflow: hidden; /* Strict no scroll */
    padding-right: 5px;
}

.left-widgets::-webkit-scrollbar { display: none; }

.decor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    pointer-events: none;
}

.decor-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: floating 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(165, 166, 216, 0.2));
}

@keyframes floating {
    0% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(5deg); }
    66% { transform: translateY(-2px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.widget-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 20px; /* Tighter padding */
    box-shadow: var(--p-shadow-soft);
    border: var(--p-border-light);
    transition: all 0.3s ease;
}

.quick-action-card {
    background: var(--bg-white) !important;
    border: var(--p-border-light) !important;
    padding: 16px 20px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 110px; /* Reduced height to fit everything */
    justify-content: center;
}

.quick-action-card:hover {
    box-shadow: var(--p-shadow-med) !important;
    transform: translateY(-3px);
}

.widget-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

/* Mini Calendar Styling */
.mini-calendar {
    width: 100%;
}
.mini-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

/* Checklist Styling */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.task-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Quick Action Elements */
.quick-add-btn {
    font-size: 42px !important; /* Daha da bÃ¼yÃ¼tÃ¼ldÃ¼ */
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-add-btn:hover {
    color: var(--primary-dark);
    transform: rotate(90deg) scale(1.1);
}

.quick-action-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Right Content Area (Large Calendar) */
.large-calendar-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--p-shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: var(--p-border-light);
}

/* Stats in Header Area */
/* Header Stats Neumorphic Design */
.header-stats {
    display: flex;
    gap: 20px;
    margin-right: 30px;
}

.stat-item {
    background: var(--bg-white);
    padding: 12px 24px;
    border-radius: 16px;
    box-shadow: var(--p-shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    border: var(--p-border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--p-shadow-med);
}

.stat-item .label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.stat-item .value {
    font-size: 20px;
    font-weight: 800;
}

/* User Block / Notification */
.notification-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--p-border-light);
    box-shadow: var(--p-shadow-soft);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: rgba(134, 135, 195, 0.05);
    color: var(--primary);
    transform: scale(1.05);
}

.notif-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent-coral);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.user-avatar-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    padding: 2px;
    background: var(--bg-white);
    box-shadow: var(--p-shadow-soft);
    border: var(--p-border-light);
    position: relative;
}

.user-avatar-wrapper .user-profile-icon {
    width: 100%;
    height: 100%;
    background: rgba(134, 135, 195, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.user-avatar-wrapper:hover .user-profile-icon {
    background: var(--primary);
    color: white;
}

.online-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--accent-lime);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

/* FullCalendar Customization to Match TimeFrame */
.fc {
    font-family: 'Outfit', sans-serif !important;
}
.fc-toolbar-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}
.fc-theme-standard td, .fc-theme-standard th {
    border: 1px solid rgba(134, 135, 195, 0.05) !important; /* Ã‡izgiler yumuÅŸatÄ±ldÄ± */
}

.fc-scrollgrid {
    border: none !important;
}

.fc-col-header-cell {
    background: transparent !important;
    padding: 15px 0 !important;
}

.fc-col-header-cell-cushion {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.fc-event {
    border: 1px solid rgba(134, 135, 195, 0.1) !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
    background: white !important; /* Kart gÃ¶rÃ¼nÃ¼mÃ¼ iÃ§in beyaz zemin */
}

/* TimeGrid (Günlük/Haftalık) için özel kısıtlamalar */
.fc-timegrid-event-harness {
    z-index: 1 !important;
}

.fc-timegrid-event {
    height: auto !important;
    width: calc(100% - 10px) !important;
    margin: 2px 5px !important;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.fc-event-main {
    padding: 2px 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.fc-event-title-container {
    color: var(--text-main) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-event-time {
    font-size: 9px !important;
    color: var(--text-muted) !important;
    font-weight: 800 !important;
    margin-bottom: 2px;
}
.fc-timegrid-slot {
    height: 50px !important; 
}

#calendar {
    flex: 1;
    min-height: 0;
}

/* Glassmorphism & 3D Buttons */
.btn-premium {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 16px rgba(45, 46, 66, 0.2);
}

.btn-icon-circle { display: none; } /* Simplified for normal premium */

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(45, 46, 66, 0.3);
}

/* Premium Badges (Flat Style) */
.premium-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.badge-lime { background: rgba(116, 184, 22, 0.1); color: #74B816; }
.badge-coral { background: rgba(255, 107, 107, 0.1); color: #FF6B6B; }

/* Mobile Responsive Adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .app-container {
        padding: 10px;
    }
    .sidebar {
        display: none; /* Mobile view can use a bottom nav or hamburger later */
    }
}

/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    width: 380px;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 15px 50px rgba(45, 46, 66, 0.15);
    position: relative;
    border: 1px solid rgba(134, 135, 195, 0.1);
    animation: toastIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    overflow: hidden;
}

@keyframes toastIn {
    from { transform: translateX(50px) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}


.toast-icon {
    width: 44px;
    height: 44px;
    background: rgba(134, 135, 195, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: #5B890B; background: var(--accent-lime-soft); }
.toast-error .toast-icon { color: #EF4444; background: rgba(239, 68, 68, 0.1); }
.toast-warning .toast-icon { color: #F59E0B; background: rgba(245, 158, 11, 0.1); }
.toast-info .toast-icon { color: #3B82F6; background: rgba(59, 130, 246, 0.1); }

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.toast-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.toast-close:hover { color: #94a3b8; }

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { transform: translateX(50px); opacity: 0; }
}

/* --- Custom Modal System --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 46, 66, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Premium Modern Modals */
.modal-container {
    background: var(--bg-white);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: visible !important;
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    animation: modalScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 100px rgba(0,0,0,0.3);
    border: var(--p-border-light);
}

.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(134, 135, 195, 0.2);
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.modal-close {
    background: rgba(134, 135, 195, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-coral);
    color: white;
    transform: rotate(90deg);
}

/* Form Styles inside Modals */
.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.form-group {
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(134, 135, 195, 0.2);
    border-radius: 12px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(134, 135, 195, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

/* Global Onay Butonları Yan Yana */
.confirm-footer-mobile {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.confirm-footer-mobile button {
    flex: 1;
    max-width: 180px;
    justify-content: center;
}

.btn-secondary {
    background: #f1f3f9;
    color: var(--text-muted);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e8f0;
    color: var(--text-main);
}

/* Randevu Hizmet Etiketleri (Pill Tags) */
.service-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.service-pill {
    background: #ecfbe6;
    color: #2e5a27;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(46, 90, 39, 0.1);
    animation: tagFadeIn 0.2s ease;
}
.service-pill .remove-pill {
    cursor: pointer;
    background: rgba(46, 90, 39, 0.1);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}
.service-pill .remove-pill:hover {
    background: #2e5a27;
    color: white;
}
@keyframes tagFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal ana butonu (SadeleÅŸtirilmiÅŸ Premium) */
.modal-container .btn-premium {
    min-width: 180px;
    justify-content: center;
}

/* --- Majestic Flatpickr Premium Theme --- */
.flatpickr-calendar {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 80px rgba(45, 46, 66, 0.18) !important;
    border: 1px solid rgba(134, 135, 195, 0.1) !important;
    padding: 15px !important;
    font-family: 'Outfit', sans-serif !important;
    width: 340px !important;
    animation: flatpickrIn 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1 !important;
    z-index: 100000 !important;
}

@keyframes flatpickrIn {
    from { transform: translateY(15px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.flatpickr-months {
    padding: 10px 0 !important;
    margin-bottom: 5px !important;
}

.flatpickr-month {
    height: 34px !important;
    color: var(--text-main) !important;
}

.flatpickr-current-month {
    font-weight: 700 !important;
    font-size: 110% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-current-month span.cur-month {
    font-weight: 800 !important;
    margin-right: 5px !important;
}

.flatpickr-current-month input.cur-year {
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    top: 15px !important;
    padding: 10px !important;
    border-radius: 12px !important;
    background: rgba(134, 135, 195, 0.05) !important;
    transition: all 0.3s ease !important;
    color: var(--primary) !important;
    fill: var(--primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover, 
.flatpickr-months .flatpickr-next-month:hover {
    background: var(--primary) !important;
    color: white !important;
    fill: white !important;
}

.flatpickr-weekday {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
}

.flatpickr-day {
    border-radius: 12px !important;
    color: var(--text-main) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    height: 38px !important;
    line-height: 38px !important;
    margin: 2px !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day:hover {
    background: rgba(134, 135, 195, 0.08) !important;
    border-color: transparent !important;
}

.flatpickr-day.today {
    border: 2px solid var(--accent-lime) !important;
    color: var(--text-main) !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 15px rgba(134, 135, 195, 0.3) !important;
}

/* Time Picker Redesign */
.flatpickr-time {
    border-top: 1px solid rgba(134, 135, 195, 0.1) !important;
    background: rgba(134, 135, 195, 0.02) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 15px 0 !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-time input {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    color: var(--text-main) !important;
}

.flatpickr-time .flatpickr-am-pm {
    font-weight: 700 !important;
    color: var(--text-muted) !important;
}

.flatpickr-time .arrowUp, .flatpickr-time .arrowDown {
    border: none !important;
    background: white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: 6px !important;
}

.flatpickr-calendar.hasTime.noCalendar {
    width: 180px !important;
    padding: 10px !important;
}

.flatpickr-calendar.hasTime.noCalendar .flatpickr-time {
    border: none !important;
    background: transparent !important;
}

/* --- Mini Calendar Enhancements --- */
.mini-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px; /* Slightly less rounded */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0px; /* No padding for compact view */
    height: 32px; /* Fixed height for grid stability */
}

.mini-day:hover {
    background: var(--bg-page);
    box-shadow: 4px 4px 8px rgba(191, 196, 217, 0.4);
    transform: translateY(-2px);
}

.mini-day.is-today {
    background: var(--primary) !important;
    color: white;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(134, 135, 195, 0.3);
}

.day-num {
    font-size: 11px; /* Smaller font */
    font-weight: 700;
}

.apt-dots {
    display: flex;
    gap: 3px;
    position: absolute;
    bottom: 6px;
}

.dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.is-today .dot {
    background: white;
    box-shadow: none;
}

/* --- Appointment List Enhancements --- */
.patient-info-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.patient-block-card {
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative; /* For call button */
    border: none;
    transition: all 0.3s ease;
}

.patient-block-card:hover {
    transform: translateX(5px);
}

.cta-call-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent-lime); /* Tam Fıstık Yeşili */
    box-shadow: 0 4px 15px rgba(190, 242, 100, 0.4); 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* İkon Beyaz */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1); 
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    outline: none !important;
    border: none !important;
}

.cta-call-icon:hover {
    transform: translateY(-50%) scale(1.1);
    background: var(--accent-lime);
    color: var(--text-main);
}

.patient-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.patient-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

.date-badge {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.05);
}

.date-today {
    background: rgba(190, 242, 100, 0.15);
    color: #3b5a0a;
    border: 1px solid rgba(190, 242, 100, 0.3);
}

.date-future {
    background: rgba(134, 135, 195, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(134, 135, 195, 0.2);
}

.date-past {
    background: #f1f3f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Action Dropdown Styles */
.action-wrapper {
    position: relative;
    display: inline-block;
}

.action-btn-trigger {
    background: white;
    border: var(--p-border-light);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-trigger:hover {
    color: var(--primary);
    background: rgba(134, 135, 195, 0.05);
    transform: scale(1.05);
}

.action-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    width: max-content;
    z-index: 100;
    border: var(--p-border-light);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(134, 135, 195, 0.05);
    white-space: nowrap;
}

.action-menu-item:last-child {
    border-bottom: none;
}

.action-menu-item:hover {
    background: rgba(134, 135, 195, 0.05);
    color: var(--primary);
}

.action-menu-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.action-menu-item i {
    width: 16px;
    transition: transform 0.2s ease;
}

.action-menu-item:hover i {
    transform: scale(1.2);
}

.icon-blue { color: #3b82f6; }
.icon-orange { color: #f59e0b; }
.icon-green { color: #5B890B; } /* Softer Lime-Green */
.icon-red { color: #f43f5e; }   /* Softer Red */
.icon-gray { color: #64748b; }

/* --- Responsive Action & Tooltip Styles --- */
.action-wrapper-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn-pc {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.03);
    background: white;
    position: relative; /* For tooltip */
}

.action-btn-pc:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.06);
}

/* Premium Tooltip */
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 6px 12px;
    background: #1e1e2d;
    color: white;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.bg-green-soft { background: var(--accent-lime-soft); color: #3b5a0a; border: 1px solid rgba(190, 242, 100, 0.2); }
.bg-red-soft { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.bg-orange-soft { background: rgba(245, 158, 11, 0.1); color: #d97706; }

@media (max-width: 992px) {
    .action-btn-pc {
        display: none !important;
    }
    .mobile-only-menu-item {
        display: flex !important;
    }
}

@media (min-width: 993px) {
    .mobile-only-menu-item {
        display: none !important;
    }
}
.detail-item-card {
    background: rgba(134, 135, 195, 0.03);
    border: 1px solid rgba(134, 135, 195, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.detail-item-card:hover {
    background: rgba(134, 135, 195, 0.06);
    transform: translateY(-2px);
    border-color: rgba(134, 135, 195, 0.15);
}

.detail-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.detail-info-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.status-pill-large {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.call-btn {
    padding: 8px 16px;
    background: var(--accent-lime);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(46, 204, 113, 0.2);
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.confirm-wrapper {
    text-align: center;
    padding: 20px 10px;
}

.confirm-icon {
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.confirm-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.confirm-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-danger-premium {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.2);
}

.btn-danger-premium:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.3);
}

/* --- Approval Hub (Onay Merkezi) Styles --- */
.approval-indicator {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: none;
    animation: pulseGlow 2s infinite;
    margin-right: 20px;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.approval-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
    overflow-y: auto;
}

.approval-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

.approval-mini-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 380px; /* Fixed max width to prevent stretching */
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.approval-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.approval-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-premium-success {
    background: var(--accent-lime); /* Pistachio Green */
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(190, 242, 100, 0.3);
    border: none;
}

.btn-premium-danger {
    background: linear-gradient(135deg, #f43f5e, #e11d48); /* Modern Rose/Red */
    color: white;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3);
}

.approval-card-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.approval-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.close-approval-hub {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.3s ease;
}

.close-approval-hub:hover {
    transform: rotate(90deg) scale(1.1);
    background: #e74c3c;
    color: white;
}

/* --- Finance Specific Blocks --- */
.description-block-card {
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    transition: all 0.2s;
}
.description-block-card.income {
    background: var(--accent-lime-soft);
    color: #3b5a0a;
}
.description-block-card.cancelled {
    background: #f1f5f9;
    color: #475569;
}
.description-block-card.expense {
    background: rgba(255, 75, 92, 0.1);
    color: #BE123C;
}

.finance-amount {
    font-weight: 800;
    font-size: 16px;
}
.finance-amount.income {
    color: #3b5a0a;
}
.finance-amount.cancelled {
    color: #94a3b8;
}
.finance-amount.expense {
    color: #BE123C;
}

/* --- Premium Switch Pill (Refined) --- */
.switch-pill {
    position: relative;
    display: inline-block;
    width: 100px; /* Wider for better text fit */
    height: 36px;
}

.switch-pill input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-pill {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 40px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.slider-pill:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.slider-pill .status-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    width: 100%;
    line-height: normal;
    user-select: none;
}

.slider-pill .text-on { color: white; padding-left: 15px; opacity: 0; transform: translateX(-10px); transition: .3s; }
.slider-pill .text-off { color: #475569; padding-right: 15px; text-align: right; opacity: 1; transform: translateX(0); transition: .3s; }

input:checked + .slider-pill {
    background-color: var(--accent-lime);
    background-image: linear-gradient(135deg, var(--accent-lime), #a3e635);
}

input:checked + .slider-pill:before {
    transform: translateX(64px);
}

input:checked + .slider-pill .text-on { color: #1e3a1f; opacity: 1; transform: translateX(0); }
input:checked + .slider-pill .text-off { opacity: 0; transform: translateX(10px); }

.slider-pill:hover:before {
    box-shadow: 0 0 0 4px rgba(134, 135, 195, 0.1);
}

/* --- Login Page Styles --- */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ff 50%, #f0f2ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    position: relative;
    z-index: 2;
    animation: loginReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(134, 135, 195, 0.15) 0%, rgba(134, 135, 195, 0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    z-index: 1;
}

.login-body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(165, 166, 216, 0.1) 0%, rgba(165, 166, 216, 0) 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    z-index: 1;
}

@keyframes loginReveal {
    from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Left Section: Login Form */
.login-side-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 40px 100px -20px rgba(134, 135, 195, 0.2);
    text-align: left;
}

.login-card .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 40px !important;
}

.login-card .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(134, 135, 195, 0.3);
    margin: 0;
}

.login-card .logo span {
    font-size: 22px;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.5px;
}

.login-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 5px;
    letter-spacing: -1px;
    text-align: left;
}

.login-subtitle {
    margin-bottom: 35px;
}

.login-subtitle span {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    display: inline-block;
    line-height: 1;
}

/* Background Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(134, 135, 195, 0.2);
    border-radius: 50%;
    filter: blur(5px);
    animation: floatParticle 20s infinite linear;
}

.p1 { width: 40px; height: 40px; top: 10%; left: 15%; animation-duration: 25s; }
.p2 { width: 60px; height: 60px; top: 70%; left: 80%; animation-duration: 30s; opacity: 0.5; }
.p3 { width: 30px; height: 30px; top: 30%; left: 85%; animation-duration: 22s; }
.p4 { width: 50px; height: 50px; top: 80%; left: 10%; animation-duration: 28s; opacity: 0.3; }

@keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Form Styles */
.login-card .form-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.login-card .form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    margin-left: 5px;
}

.login-card .form-control {
    width: 100%;
    height: 60px;
    background: white !important;
    border: 2px solid #f1f5f9 !important;
    border-radius: 20px !important;
    padding: 0 45px 0 60px !important;
    font-size: 15px;
    font-weight: 600;
    color: #1e1b4b;
    transition: all 0.3s ease;
}

/* Genel İkonlu Input Yapısı */
.input-wrapper .form-control {
    padding-left: 60px !important;
    padding-right: 45px !important;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 5;
}

.toggle-password {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}

.input-wrapper .form-control:focus + .input-icon {
    color: var(--primary);
}

.login-card .btn-primary {
    width: 100%;
    height: 60px;
    background: #1e1b4b !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease !important;
    margin-top: 10px;
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.3) !important;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(30, 27, 75, 0.4) !important;
    background: #2d2a5a !important;
}

/* Info Card (Asymmetric Layout) */
.login-side-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card-large {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 45px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #1e1b4b;
    position: relative;
    overflow: hidden;
}

.info-card-large .date-display {
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.info-card-large h3 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.info-card-large .day-info {
    font-size: 32px;
    font-weight: 600;
    opacity: 0.6;
}

.info-card-large .location-info {
    margin-top: auto;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #475569;
}

.info-card-small {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 35px;
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(30, 27, 75, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card-small:hover {
    transform: scale(1.02);
}

.info-card-small .text-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.info-card-small .text-content p {
    font-size: 15px;
    opacity: 0.7;
}

.info-card-small .discover-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.info-card-small:hover .discover-btn {
    background: white;
    color: #1e1b4b;
    transform: rotate(-15deg);
}

/* Error States */
.login-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #ef4444;
    padding: 18px 25px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* LOGIN FOOTER */
.login-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .login-side-info {
        display: none; /* Mobilde sadece forma odaklan */
    }
    
    .login-card {
        padding: 50px 35px;
    }
}

@media (max-width: 576px) {
    .login-body {
        padding: 15px;
    }
    
    .login-card {
        padding: 40px 25px;
        border-radius: 35px;
    }
    
    .login-card h2 {
        font-size: 28px;
    }
    
    .login-card .logo {
        margin-bottom: 30px !important;
    }
}

/* --- Expandable Text Block --- */
.expandable-description {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    max-width: 100%;
    border-radius: 12px;
}

.expandable-description .text-content {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
    max-height: 20px;
}

.expandable-description.expanded .text-content {
    white-space: normal;
    max-height: 500px; /* Large enough for long texts */
    overflow-y: visible;
}

.expandable-description:hover {
    background: rgba(165,166,216,0.1) !important;
}

/* --- Appointment Detail Modal --- */
.detail-card {
    background: rgba(134, 135, 195, 0.03);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(134, 135, 195, 0.08);
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-row:last-child { margin-bottom: 0; }

.detail-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--p-shadow-soft);
    font-size: 18px;
}

.detail-info label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.detail-info span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.detail-badge {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.row-passive {
    opacity: 0.6;
    background: rgba(165,166,216,0.02);
}

.modal-apt-actions {
    display: none !important;
}

.patient-block-card {
    max-width: 220px !important;
}
/* --- Priority Modal Refined Styles --- */
.priority-container-centered {
    max-width: 400px !important;
    text-align: center !important;
    padding: 40px !important;
    border-radius: 32px !important;
}
.priority-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.priority-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.priority-detail-item i {
    width: 20px;
    color: var(--primary);
}

/* --- Final Majestic Priority Card (No global constraints) --- */
.priority-majestic-card {
    width: 800px !important;
    max-width: 95vw !important;
    background: #ffffff;
    border-radius: 60px !important;
    padding: 100px !important;
    text-align: center !important;
    box-shadow: 0 50px 150px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden !important;
    animation: modalScaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.priority-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
}

.priority-main-title {
    font-size: 22px; /* Zarif ve kÃ¼Ã§Ã¼k baÅŸlÄ±k */
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.priority-patient-name {
    font-size: 17px; /* Minimalist isim */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.priority-info-line {
    font-size: 13px; /* KÃ¼Ã§Ã¼k ve ÅŸÄ±k bilgi satÄ±rÄ± */
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.priority-date-line {
    font-size: 11px; 
    color: var(--text-muted); 
    margin-top: 8px; 
    font-weight: 700; 
    opacity: 0.8;
}

.priority-actions-centered {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box !important;
}

.priority-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.priority-btn-grid button {
    padding: 15px 0 !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 0 !important;
    width: 100% !important;
    display: block;
    transition: all 0.3s ease;
}

.priority-big-snooze {
    width: 100% !important;
    padding: 16px !important;
    background: rgba(134, 135, 195, 0.04) !important;
    border: 1px solid rgba(134, 135, 195, 0.1) !important;
    color: var(--text-muted) !important;
    border-radius: 18px !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    margin: 0 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE (TimeFrame Adaptive)
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-white);
    border: var(--p-border-light);
    box-shadow: var(--p-shadow-soft);
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


@media (max-width: 1024px) {
    body {
        overflow-y: auto !important;
        height: auto;
    }

    .app-container {
        padding: 5px; /* Minimal padding for more space */
        flex-direction: column;
        height: auto;
        overflow: visible;
        gap: 10px;
    }

    .sidebar {
        position: fixed;
        left: -280px; /* Wider sidebar for readability */
        top: 0;
        width: 250px;
        height: 100vh;
        z-index: 9999;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 30px 30px 0;
    }

    .sidebar.mobile-active {
        left: 0;
        box-shadow: 20px 0 60px rgba(0,0,0,0.3);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(45, 46, 66, 0.6);
        backdrop-filter: blur(8px);
        z-index: 9998;
    }

    .main-wrapper {
        gap: 10px;
        overflow: visible;
        height: auto;
        padding: 5px;
    }


    /* --- Global Mobile Helpers --- */
    .desktop-only {
        display: none !important;
    }

    /* --- Refined Mobile Header --- */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    /* --- Appointments Page Mobile --- */
    .page-header-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        text-align: center;
    }

    .mobile-only-title {
        display: block !important;
    }

    .header-actions-mobile {
        justify-content: center;
        width: 100%;
        gap: 10px !important;
    }

    .header-actions-mobile .btn-premium {
        flex: 1;
        justify-content: center;
        padding: 12px;
    }

    .mobile-only-text {
        display: inline !important;
        font-size: 13px;
    }

    .calendar-view-btn {
        min-width: unset !important;
    }

    /* Table Adjustments */
    .appointment-row td {
        padding: 12px 5px !important;
    }

    .patient-block-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        justify-content: space-between !important;
        border-radius: 18px !important;
        max-width: 100% !important;
    }

    .patient-name {
        font-size: 15px !important;
    }

    .cta-call-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        background: var(--accent-lime) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(190, 242, 100, 0.4) !important;
        text-decoration: none !important;
        outline: none !important;
        border: none !important;
    }

    /* Modal Grid Stacking */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .detail-item-card {
        grid-column: span 1 !important;
    }

    .modal-container > div:first-child[style*="flex"] {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .status-pill-large, .call-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Modal Scroll Fix */
    .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 40px 20px !important;
    }

    .modal-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Modal Action Buttons */
    .modal-apt-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .modal-apt-actions button {
        width: 100% !important;
        border-radius: 15px !important;
    }

    .modal-apt-actions-row {
        flex-direction: column !important;
        gap: 12px !important;
    }

    /* Confirmation Modals Mobile */
    .confirm-wrapper {
        padding: 5px !important;
        text-align: center !important;
    }

    .confirm-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }

    .confirm-title {
        font-size: 16px !important;
    }

    .confirm-footer-mobile {
        justify-content: center !important;
        gap: 10px !important;
    }

    .confirm-footer-mobile button {
        padding: 14px 10px !important;
        font-size: 13px !important;
    }

    .top-nav {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        background: var(--bg-white);
        padding: 15px;
        border-radius: 20px;
        box-shadow: var(--p-shadow-soft);
        border: var(--p-border-light);
        position: relative;
        z-index: 10;
    }

    .top-actions {
        display: flex;
        flex-direction: row; /* Horizontal row for stats and menu */
        align-items: center;
        justify-content: space-between !important;
        width: 100%;
        gap: 10px;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    table {
        table-layout: auto !important;
    }

    .header-stats {
        display: flex;
        flex: 1; /* Take available space */
        gap: 8px;
        margin: 0;
        order: 1;
    }

    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 8px 10px;
        background: rgba(134, 135, 195, 0.05);
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(134, 135, 195, 0.05);
    }

    .stat-item .label {
        font-size: 8px;
        white-space: nowrap;
        margin-bottom: 2px;
    }

    .stat-item .value {
        font-size: 13px;
    }

    .user-block {
        order: 2;
        margin-left: auto;
        gap: 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
        width: 45px;
        height: 45px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(134, 135, 195, 0.3);
        z-index: 11;
    }

    /* Approval Hub Below */
    #approval-hub-btn {
        width: 100%;
        order: 3;
        margin-top: 5px;
        padding: 12px;
        background: var(--accent-coral);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 13px;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(255, 75, 92, 0.2);
    }

    /* Dashboard Grid Stacking */
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .left-widgets {
        padding-right: 0;
        gap: 12px;
    }

    .widget-card {
        height: auto !important;
        padding: 15px;
    }

    /* --- Calendar Header Stack --- */
    .large-calendar-container {
        padding: 20px 15px;
    }

    .large-calendar-container > div:first-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
        margin-bottom: 30px !important;
    }

    .large-calendar-container h3 {
        font-size: 22px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .large-calendar-container h3 + div {
        display: none; /* Hide the title underline bar on mobile for cleaner look */
    }

    .view-toggles {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        order: 2;
    }

    .view-toggles .toggle-btn {
        flex: 1;
        padding: 12px 5px;
        font-size: 13px;
        border-radius: 12px;
    }

    .large-calendar-container .btn-premium {
        width: 100% !important;
        order: 3;
        justify-content: center;
        padding: 16px;
        font-size: 15px;
        border-radius: 15px;
        margin: 0 !important;
    }

    /* Sidebar Fixes */
    .sidebar {
        display: flex !important; /* Force display to override legacy rules */
        width: 250px;
        left: -280px;
        position: fixed;
        background: var(--bg-white);
        z-index: 9999;
        padding-top: 30px;
        align-items: flex-start; /* Align items to the left */
    }
    
    .sidebar.mobile-active {
        left: 0;
        box-shadow: 20px 0 60px rgba(0,0,0,0.3);
    }

    .nav-links-vertical {
        width: 100%;
        padding: 0 15px;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-link-icon {
        width: 100%;
        height: 50px;
        justify-content: flex-start;
        padding: 0 20px;
        gap: 15px;
        border-radius: 15px;
        font-size: 20px;
    }

    .nav-label {
        display: block !important;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    .logo-sidebar {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }

    .sidebar-footer {
        width: 100%;
        padding: 0 15px !important;
        align-items: flex-start !important;
    }


    /* Calendar Internal Mobile Fixes */
    .fc-scroller {
        height: auto !important;
        overflow: visible !important;
    }
    
    .fc-timegrid-body {
        width: 100% !important;
    }

    .fc-timegrid-cols table {
        min-width: 600px; /* Force internal scroll for the week grid if narrow */
    }

    .fc-scroller-canvas {
        height: auto !important;
    }
}

/* --- Mobil Başlık Başlangıçta Her Yerde Gizli --- */
.mobile-day-header {
    display: none;
}

@media (max-width: 1024px) {
    /* --- Haftalık Takvim Dikey Düzen (Mobil) - FullCalendar 6 Uyumlu --- */
    .fc-dayGridWeek-view .fc-scrollgrid,
    .fc-dayGridWeek-view .fc-scrollgrid-section,
    .fc-dayGridWeek-view .fc-scrollgrid-section > td,
    .fc-dayGridWeek-view .fc-daygrid-body,
    .fc-dayGridWeek-view .fc-daygrid-body table,
    .fc-dayGridWeek-view .fc-daygrid-body tbody,
    .fc-dayGridWeek-view .fc-daygrid-body tr,
    .fc-dayGridWeek-view .fc-daygrid-day-frame {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    .fc-dayGridWeek-view .fc-daygrid-day {
        display: block !important;
        width: 100% !important;
        margin-bottom: 30px !important;
        border: 1px solid rgba(134, 135, 195, 0.15) !important;
        border-radius: 24px !important;
        background: white !important;
        box-shadow: 0 12px 40px rgba(45, 46, 66, 0.08) !important;
        min-height: auto !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .fc-dayGridWeek-view .fc-col-header {
        display: none !important; /* Üst başlıkları tamamen kaldır */
    }

    /* Bizim enjekte ettiğimiz başlık */
    .fc-dayGridWeek-view .mobile-day-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        background: linear-gradient(135deg, rgba(134, 135, 195, 0.1) 0%, rgba(134, 135, 195, 0.02) 100%);
        border-bottom: 2px solid rgba(134, 135, 195, 0.05);
        color: var(--primary);
        font-size: 15px;
    }

    .fc-dayGridWeek-view .mobile-day-header span {
        font-weight: 800;
        opacity: 0.9;
    }

    .fc-dayGridWeek-view .mobile-day-header strong {
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .fc-dayGridWeek-view .fc-daygrid-day-top {
        display: none !important; /* Standart rakamı gizle */
    }
    
    .fc-dayGridWeek-view .fc-daygrid-day-events {
        padding: 15px !important;
        min-height: 50px;
    }

    /* Randevuların kutu gibi görünmesi */
    .fc-dayGridWeek-view .fc-daygrid-event-harness {
        margin: 8px 0 !important;
        position: static !important; /* Mutlak konumlandırmayı boz */
    }

    .fc-dayGridWeek-view .fc-event {
        margin: 0 !important;
    }
}

/* Sağ Panel Merkezi Hata Kutusu */
.side-error-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    animation: fadeInScale 0.4s ease-out;
}

.side-error-box .error-icon {
    font-size: 70px;
    color: #ef4444;
    margin-bottom: 25px;
    filter: drop-shadow(0 10px 20px rgba(239, 68, 68, 0.25));
}

.side-error-box .error-msg {
    font-size: 26px;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 12px;
}

.side-error-box .error-hint {
    font-size: 15px;
    color: #64748b;
    max-width: 280px;
    line-height: 1.5;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



