/*
Project: EPT-MX-ADM
Company: EasyProTech LLC (www.easypro.tech)
Dev: Brabus
Date: Thu 23 Oct 2025 22:56:11 UTC
Status: Main Stylesheet
Telegram: https://t.me/EasyProTech
*/

/* EPT-MX-ADM - Unified Design System */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary-color: #4e73df;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-light: rgba(102, 126, 234, 0.1);
    --primary-hover: rgba(102, 126, 234, 0.2);
    
    /* Status Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --secondary-color: #6c757d;
    
    /* Neutral Colors */
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --black-color: #000000;
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #8a92a5;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
    
    /* Background Colors */
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #23263a;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-glass-dark: rgba(52, 58, 70, 0.95);
    
    /* Border Colors */
    --border-color: rgba(102, 126, 234, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-dark: rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(102, 126, 234, 0.075);
    --shadow: 0 0.15rem 1.75rem 0 rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(102, 126, 234, 0.175);
    --shadow-hover: 0 0.5rem 2rem rgba(102, 126, 234, 0.3);
    --shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-pill: 50rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 9998; /* Очень высокий z-index для tooltip */
    --z-language: 9999; /* Языковое меню поверх всего */
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-muted: #6c757d;
    --bg-white: #23263a;
    --bg-light: #343a46;
    --bg-glass: rgba(52, 58, 70, 0.95);
    --border-color: rgba(102, 126, 234, 0.2);
    --shadow: var(--shadow-dark);
}


/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

/* Page Header */
.header-section {
    padding: var(--spacing) 0;
    margin-bottom: var(--spacing-lg);
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Page Title */
.page-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Text Gradient */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
}

/* ==========================================================================
   CARD SYSTEM
   ========================================================================== */

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: var(--spacing);
}

/* Special Card Types */
.card-status {
    position: relative;
}

.card-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.elite-card {
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.elite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.elite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}


/* ==========================================================================
   GRID SYSTEMS
   ========================================================================== */

/* Info Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Users/Rooms Grid */
.users-grid,
.rooms-grid,
.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing);
}



/* ==========================================================================
   AVATAR SYSTEM
   ========================================================================== */

.user-avatar,
.room-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.25rem;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Button Variants */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: var(--shadow);
}

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

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

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

.btn-warning {
    background: var(--warning-color);
    color: var(--text-primary);
}

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

.btn-info {
    background: var(--info-color);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-white);
}

/* Button Sizes */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-lg);
}

/* Special Buttons */
.btn-elite {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    position: relative;
    overflow: hidden;
}

.btn-elite:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   BADGE SYSTEM
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-pill);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.bg-success {
    background: rgba(40, 167, 69, 0.1) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.bg-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #b45309 !important;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.bg-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.bg-info {
    background: rgba(23, 162, 184, 0.1) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(23, 162, 184, 0.2);
}

.bg-primary {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color);
}

.bg-secondary {
    background: rgba(108, 117, 125, 0.1) !important;
    color: var(--secondary-color) !important;
    border: 1px solid rgba(108, 117, 125, 0.2);
}


/* ==========================================================================
   TOOLTIP SYSTEM
   ========================================================================== */

.tooltip {
    z-index: var(--z-tooltip) !important;
    font-family: var(--font-family);
}

/* Force tooltip z-index override */
.tooltip.show {
    z-index: 9998 !important;
}

.bs-tooltip-top, .bs-tooltip-bottom, .bs-tooltip-start, .bs-tooltip-end {
    z-index: 9998 !important;
}



.tooltip .tooltip-inner {
    background: var(--bg-glass-dark);
    color: var(--text-white);
    border-radius: var(--border-radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    max-width: 120px;
    word-wrap: break-word;
    white-space: nowrap;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--bg-glass-dark);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--bg-glass-dark);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--bg-glass-dark);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--bg-glass-dark);
}

/* Custom tooltip positioning */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    background: var(--bg-glass-dark);
    color: var(--text-white);
    text-align: center;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing);
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
    width: 160px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: var(--transition);
}

.tooltip-custom .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-glass-dark) transparent transparent transparent;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(-5px);
}

/* ==========================================================================
   FORM SYSTEM
   ========================================================================== */

.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    transition: var(--transition);
    font-size: var(--font-size);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

.form-select {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* Search Box */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.search-box .form-control {
    padding-left: 2.5rem;
}

/* Filter Switches */
.filter-switches {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-check-label {
    font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   TABLE SYSTEM
   ========================================================================== */

.table {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.table thead th {
    background: var(--primary-color);
    color: var(--text-white);
    font-weight: var(--font-weight-bold);
    border: none;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-light);
}

/* ==========================================================================
   STATUS INDICATORS
   ========================================================================== */

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--spacing);
    padding: var(--spacing-sm) 0;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.status-dot.bg-success {
    background: var(--success-color) !important;
    animation: pulse-success 2s infinite;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-dot.bg-danger {
    background: var(--danger-color) !important;
    animation: pulse-danger 2s infinite;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.status-dot.bg-warning {
    background: var(--warning-color) !important;
    animation: pulse-warning 2s infinite;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* ==========================================================================
   STATISTICS COMPONENTS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
}

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

.stat-number.warning {
    color: var(--warning-color);
}

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

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--spacing-xs);
}

/* Server Info */
.server-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.info-value {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.info-value.primary {
    color: var(--primary-color);
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-bottom: var(--spacing);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-section {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.pagination-info {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.pagination-text {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}


/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Spacing */
.p-xs { padding: var(--spacing-xs) !important; }
.p-sm { padding: var(--spacing-sm) !important; }
.p { padding: var(--spacing) !important; }
.p-lg { padding: var(--spacing-lg) !important; }
.p-xl { padding: var(--spacing-xl) !important; }

.m-xs { margin: var(--spacing-xs) !important; }
.m-sm { margin: var(--spacing-sm) !important; }
.m { margin: var(--spacing) !important; }
.m-lg { margin: var(--spacing-lg) !important; }
.m-xl { margin: var(--spacing-xl) !important; }

/* Text */
.text-xs { font-size: var(--font-size-xs) !important; }
.text-sm { font-size: var(--font-size-sm) !important; }
.text-lg { font-size: var(--font-size-lg) !important; }
.text-xl { font-size: var(--font-size-xl) !important; }

.fw-medium { font-weight: var(--font-weight-medium) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }

/* Colors */
.text-primary-custom { color: var(--text-primary) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

/* Borders */
.border-radius { border-radius: var(--border-radius) !important; }
.border-radius-lg { border-radius: var(--border-radius-lg) !important; }
.border-radius-pill { border-radius: var(--border-radius-pill) !important; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .info-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .users-grid,
    .rooms-grid,
    .spaces-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --spacing: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
    }
    
    .header-section {
        padding: var(--spacing-sm) 0;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing);
    }
    
    .users-grid,
    .rooms-grid,
    .spaces-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing);
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--spacing);
    }
    
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: var(--font-size-sm);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 576px) {
    .filter-switches {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: var(--font-size-lg);
    }
}

/* ==========================================================================
   DARK THEME ADJUSTMENTS
   ========================================================================== */

[data-bs-theme="dark"] .card {
    background: var(--bg-glass);
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
}

[data-bs-theme="dark"] .table {
    background: var(--bg-dark);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .empty-state {
    color: var(--text-muted);
}

[data-bs-theme="dark"] .empty-state h5 {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .elite-card {
    background: var(--bg-glass-dark);
    border-color: rgba(102, 126, 234, 0.2);
}


/* ==========================================================================
   MODAL SYSTEM
   ========================================================================== */

.modal-content.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   DROPDOWN SYSTEM
   ========================================================================== */

.dropdown-menu {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-sm);
    z-index: var(--z-dropdown);
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) var(--spacing);
    transition: var(--transition-fast);
}

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

.dropdown-divider {
    border-color: var(--border-color);
    margin: var(--spacing-sm) 0;
}

/* ==========================================================================
   NAVIGATION SYSTEM
   ========================================================================== */

.navbar {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing) 0;
    position: relative;
    z-index: var(--z-language);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
    border-radius: var(--border-radius-sm);
    margin: 0 var(--spacing-xs);
}

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

.theme-toggle {
    color: var(--text-secondary) !important;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary-color) !important;
}

/* Language Dropdown */
.language-dropdown .dropdown-menu {
    min-width: 200px;
    z-index: 99999 !important; /* Поверх всех элементов */
    position: fixed !important;
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* User Dropdown */
.user-dropdown .dropdown-menu {
    min-width: 250px;
    z-index: 99999 !important;
    position: fixed !important;
}

/* Navbar Dropdowns - всегда поверх контента */
.navbar .dropdown-menu {
    z-index: 99999 !important;
    position: fixed !important;
}

.dropdown-header {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.glass-effect {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* ==========================================================================
   ALERT SYSTEM
   ========================================================================== */

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: var(--spacing);
    margin-bottom: var(--spacing);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #b45309;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* ==========================================================================
   CREATOR LINK
   ========================================================================== */

.creator-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.creator-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* ==========================================================================
   DASHBOARD STAT ICONS
   ========================================================================== */

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
}

.card-status .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-status .card-body {
    padding: 1.5rem 1.25rem;
}

[data-bs-theme="dark"] .card-status .card-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
