/* Alpi Diş Hastaneleri CRM - Modern Minimal Design */

:root {
    /* Modern Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Layout Variables */
    --sidebar-width: 260px;
    --header-height: 64px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modern Header/Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

/* Modern Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    background: white;
    border-right: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-content {
    padding: 1.5rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.sidebar .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0;
    margin: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
    border-left-color: var(--primary-light);
}

.sidebar .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Modern Branch Info */
.branch-info {
    margin-top: auto;
    padding: 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.branch-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.branch-info-item i {
    width: 16px;
    color: var(--gray-500);
}

/* Avatar Styles */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Modern Layout Container */
.d-flex {
    flex: 1;
    display: flex !important;
    position: relative;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Mobile sidebar overlay */
    .sidebar.show::before {
        content: '';
        position: fixed;
        top: var(--header-height);
        left: var(--sidebar-width);
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 2.5rem 3rem;
    }
}

/* Legacy main support - fallback */
main.col-md-9 {
    margin-left: 0;
    padding: 2rem;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
}

@media (min-width: 768px) {
    main.col-md-9 {
        margin-left: var(--sidebar-width);
        padding: 2.5rem 3rem;
    }
}

.main-content {
    max-width: 100%;
    animation: fadeInUp 0.4s ease-out;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Modern Cards */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Modern Statistics Cards */
.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.stat-card.stat-success::before {
    background: var(--success-color);
}

.stat-card.stat-warning::before {
    background: var(--warning-color);
}

.stat-card.stat-danger::before {
    background: var(--danger-color);
}

.stat-card.stat-info::before {
    background: var(--info-color);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.stat-card.stat-success .stat-icon {
    background: #dcfdf7;
    color: var(--success-color);
}

.stat-card.stat-warning .stat-icon {
    background: #fef3c7;
    color: var(--warning-color);
}

.stat-card.stat-danger .stat-icon {
    background: #fecaca;
    color: var(--danger-color);
}

.stat-card.stat-info .stat-icon {
    background: #e0f2fe;
    color: var(--info-color);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: none;
    letter-spacing: normal;
}

.stat-card .stat-trend {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-trend.up {
    color: var(--success-color);
}

.stat-trend.down {
    color: var(--danger-color);
}

/* Modern Tables */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.table th {
    background: var(--gray-50);
    border-top: none;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--gray-700);
    padding: 1rem 1.25rem;
    text-transform: none;
    letter-spacing: normal;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.table-hover tbody tr {
    transition: background-color 0.15s ease;
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.015);
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Modern Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.25;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-success {
    background-color: #dcfdf7;
    color: var(--success-color);
}

.badge-warning {
    background-color: #fef3c7;
    color: var(--warning-color);
}

.badge-danger {
    background-color: #fecaca;
    color: var(--danger-color);
}

.badge-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

.badge-info {
    background-color: #e0f2fe;
    color: var(--info-color);
}

/* Modern Buttons */
.btn {
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.25;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Modern Forms */
.form-control, .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: white;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    display: block;
}

.form-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-floating {
    position: relative;
}

.form-floating .form-control {
    height: 3.5rem;
    padding: 1rem 1rem 0.25rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: var(--gray-500);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Search and Filter Section */
.search-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.search-section .row {
    align-items: end;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modern Login Page */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Dashboard Widgets */
.widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.widget:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem 0;
    }
    
    main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .filter-group {
        gap: 0.75rem;
    }
    
    .filter-group .form-group {
        min-width: 150px;
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
}

@media (max-width: 575.98px) {
    main {
        padding: 1rem;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group .form-group {
        min-width: auto;
    }
}

/* Modern Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Modern Tooltips & Popovers */
.tooltip {
    font-size: 0.8125rem;
    font-weight: 500;
}

.tooltip-inner {
    background-color: var(--gray-900);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
}

/* Modern Alerts */
.alert {
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-primary {
    background-color: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-dark);
}

.alert-success {
    background-color: #dcfdf7;
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.alert-danger {
    background-color: #fecaca;
    border-color: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.alert-info {
    background-color: #e0f2fe;
    border-color: rgba(14, 165, 233, 0.2);
    color: #0369a1;
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
    background: none;
    border: none;
    opacity: 0.6;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Modern Progress Bars */
.progress {
    height: 0.5rem;
    border-radius: 9999px;
    background-color: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    border-radius: 9999px;
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

/* Modern Dropdown Menus */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.25rem;
    background: white;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-item:active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/* Additional Modern Components */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 1.5rem 0;
}

/* Utility Classes */
.text-muted {
    color: var(--gray-500) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Focus States */
.btn:focus-visible,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modern Footer */
.footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1rem 0;
    margin-top: auto;
}

.footer-public {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .btn, .dropdown, .footer {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .btn, .dropdown, .widget-actions {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        margin-bottom: 1rem;
    }
    
    .stat-card::before {
        display: none;
    }
    
    body {
        background: white !important;
    }
}