/* 
  WOW Design Override for Medi DT 
  Transforms the app into a sleek, modern, glassmorphic SaaS interface.
*/

:root {
    /* Enhanced Brand Colors - More vibrant */
    --color-primary: #FF2A3A;
    --color-primary-light: #FF5A67;
    --color-primary-dark: #D40010;
    --color-primary-50: #FFF0F1;
    
    /* Deep Sleek Dark Theme Colors */
    --color-bg: #050505;
    --color-bg-secondary: #0A0A0B;
    --color-bg-tertiary: #141415;
    
    /* Glassmorphic Surfaces */
    --color-surface: rgba(20, 20, 22, 0.6);
    --color-surface-hover: rgba(35, 35, 40, 0.8);
    --color-surface-active: rgba(50, 50, 55, 0.9);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Text Colors for Dark Theme */
    --color-text: #F5F5F6;
    --color-text-secondary: #A1A1AA;
    --color-text-muted: #71717A;
    --color-text-inverse: #050505;
    
    /* Glass Effect */
    --glass-bg: rgba(5, 5, 5, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 30px;
    
    /* Modern Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(255, 42, 58, 0.25);
    
    /* Smoother Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* New Modern Font */
    --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Semantic Colors updated for Dark Mode */
    --color-success: #10B981;
    --color-success-light: rgba(16, 185, 129, 0.15);
    --color-warning: #F59E0B;
    --color-warning-light: rgba(245, 158, 11, 0.15);
    --color-danger: #EF4444;
    --color-danger-light: rgba(239, 68, 68, 0.15);
    --color-info: #3B82F6;
    --color-info-light: rgba(59, 130, 246, 0.15);
}

/* Base Body with Animated Mesh Gradient Background */
body {
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 42, 58, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text);
}

/* Enhanced Sidebar */
.sidebar {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-border);
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}

.logo-icon {
    background: linear-gradient(135deg, var(--color-primary), #FF7A85);
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link {
    border-radius: var(--radius-md);
    margin: 0 var(--space-2) var(--space-1);
    padding: var(--space-3) var(--space-4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--color-surface-hover);
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--color-primary-light);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 42, 58, 0.3);
}

.nav-link.active i {
    color: white;
}

/* Access Control / Visibility Rules */
.nav-section-superadmin {
    display: none !important;
}

body.is-super-admin .nav-section-superadmin {
    display: block !important;
}

body.is-super-admin .nav-section-standard {
    display: none !important;
}

/* Enhanced Cards */
.card {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

/* Stat Cards Glow Effects */
.stat-card {
    background: linear-gradient(145deg, var(--color-surface), rgba(30,30,35,0.8));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--stat-color, var(--color-primary));
    opacity: 0.8;
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #FF5A67);
    box-shadow: 0 4px 12px rgba(255, 42, 58, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 42, 58, 0.4);
}

.btn-ghost:hover {
    background: var(--color-surface-hover);
}

/* Topbar */
.topbar {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Search Box */
.search-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 42, 58, 0.15);
    background: var(--color-bg-secondary);
}

/* Tables */
.data-table th {
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td {
    border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:hover {
    background: var(--color-surface-hover);
}

/* Custom Scrollbar for sleekness */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-border-hover);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Loading Screen Animation */
.loader-ring {
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Badges */
.badge {
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Premium Login Page Enhancements */
.is-login-page {
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 42, 58, 0.2) 0px, transparent 60%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 60%),
        linear-gradient(135deg, #050505, #0a0a0c);
}

.is-login-page .login-premium-container {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(255,42,58,0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.login-left {
    background: linear-gradient(135deg, rgba(255,42,58,0.1), transparent);
    border-right: 1px solid var(--color-border);
}

.logo-icon-large {
    background: linear-gradient(135deg, var(--color-primary), #FF5A67);
    box-shadow: var(--shadow-glow);
    border-radius: var(--radius-lg);
}

.btn-login-premium {
    background: linear-gradient(135deg, var(--color-primary), #FF5A67);
    box-shadow: 0 4px 15px rgba(255, 42, 58, 0.4);
    border: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-login-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 42, 58, 0.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 42, 58, 0.2);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.custom-checkbox:hover {
    color: var(--color-primary);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--color-primary-light);
    background-color: rgba(255, 42, 58, 0.05); /* Swiss red tint */
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 42, 58, 0.3);
}

.custom-checkbox .checkmark i {
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox input:checked ~ .checkmark i {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox span:last-child {
    font-weight: 500;
}
/*
FullCalendar
WOW
Design
*/


/* ─── FULLCALENDAR WOW DESIGN ───────────────────────────────────── */
.fc {
    --fc-border-color: rgba(255, 255, 255, 0.1);
    --fc-button-bg-color: rgba(255, 255, 255, 0.1);
    --fc-button-border-color: rgba(255, 255, 255, 0.2);
    --fc-button-hover-bg-color: rgba(255, 255, 255, 0.2);
    --fc-button-hover-border-color: rgba(255, 255, 255, 0.3);
    --fc-button-active-bg-color: var(--color-primary);
    --fc-button-active-border-color: var(--color-primary);
    --fc-event-bg-color: var(--color-primary);
    --fc-event-border-color: var(--color-primary);
    --fc-today-bg-color: rgba(59, 130, 246, 0.05);
    font-family: var(--font-family);
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--glass-border) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.fc-theme-standard td, .fc-theme-standard th {
    border-color: var(--glass-border) !important;
}

.fc .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.fc .fc-button {
    border-radius: var(--radius-md) !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(4px);
    color: var(--color-text) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active, 
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.fc-daygrid-day-number, .fc-col-header-cell-cushion {
    color: var(--color-text) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.fc-col-header-cell-cushion {
    padding: 10px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--color-text-muted) !important;
}

.fc-event {
    border-radius: 6px !important;
    border: none !important;
    padding: 2px 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.fc-event:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    cursor: pointer;
}

.fc-timegrid-event .fc-event-main {
    padding: 2px 4px;
}

.fc-event-title {
    font-weight: 600 !important;
    font-size: 0.85rem;
}

.fc-event-time {
    font-size: 0.75rem;
    opacity: 0.9;
}

.fc-timegrid-slot-label-cushion {
    color: var(--color-text-muted) !important;
}

.fc .fc-highlight {
    background: rgba(59, 130, 246, 0.1) !important;
}
