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

:root {
    font-size: 15px;
    
    /* Modern Dark Theme Colors */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252b3d;
    --bg-card: #1e2432;
    --bg-hover: #2a2f3e;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d1;
    --text-muted: #8b949e;
    --text-accent: #667eea;
    
    /* Accent Colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-success: #28a745;
    --accent-warning: #ffc107;
    --accent-danger: #dc3545;
    --accent-info: #17a2b8;
    
    /* Borders */
    --border-primary: #2a2f3e;
    --border-secondary: #3a3f4e;
    --border-accent: #667eea;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Spacing */
    --space-xs: 0.125rem;
    --space-sm: 0.25rem;
    --space-md: 0.5rem;
    --space-lg: 0.75rem;
    --space-xl: 1rem;
    --space-2xl: 1.5rem;
}

@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi),
       screen and (min-resolution: 2dppx) {
    :root {
        font-size: 16px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 3), 
       screen and (min-resolution: 288dpi),
       screen and (min-resolution: 3dppx) {
    :root {
        font-size: 17px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

/* Скрытие контента до загрузки языка */
body:not(.i18n-ready) {
    visibility: hidden;
}

body.i18n-ready {
    visibility: visible;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    position: relative;
    z-index: 100;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

.sidebar.collapsed {
    width: 80px;
    overflow-x: hidden;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .logo-image {
    display: none;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-title {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    padding: 20px 10px;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px 0;
    margin: 4px 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.sidebar.collapsed .nav-link i {
    font-size: 18px;
}

.sidebar.collapsed .nav-link.active {
    transform: none;
    border-left: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    width: calc(100% - 24px);
}

.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    margin-left: 8px;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 10px;
}

.sidebar-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 64px;
}

.logo-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.95) 100%);
    padding: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.user-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-title {
    padding: 0 16px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-normal);
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-right: 6px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.1) 50%, 
        transparent 100%
    );
    transition: var(--transition-normal);
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    border-left-color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.nav-link.active::before {
    display: none;
}

.nav-link i {
    width: 16px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    background: transparent;
    overflow-y: auto;
}

.content-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.header-title i {
    color: var(--accent-primary);
    font-size: 20px;
}

.header-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.header-time {
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
    position: absolute;
    top: 20px;
    right: 30px;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
}

.auto-refresh input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.refresh-btn {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
}

.refresh-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 12px 20px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

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

.stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Dashboard Cards */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin: 12px 20px;
}

.dashboard-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.dashboard-card:first-child {
    grid-column: 1 / -1;
}

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

.card-header {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.card-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    font-weight: 500;
}

.card-link:hover {
    color: var(--text-primary);
}

.card-content {
    padding: 12px 16px;
}

/* Device Status Row */
.device-status-row {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
    position: relative;
}

.device-status-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--border-accent);
}

.device-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.device-ip {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.device-status.online {
    color: var(--accent-success);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.device-status.offline {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
}

.quick-action-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 20px;
    color: var(--accent-primary);
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

.quick-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Tables */
.logs-container,
.devices-container {
    margin: 12px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.logs-container:hover,
.devices-container:hover {
    box-shadow: var(--shadow-md);
}

.logs-header,
.devices-header {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 32px;
}

.logs-header::before,
.devices-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

.logs-title,
.devices-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.logs-controls,
.devices-controls {
    display: flex;
    gap: 12px;
}

.export-btn,
.refresh-btn,
.add-device-btn {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-normal);
    font-weight: 500;
}

.export-btn:hover,
.refresh-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.add-device-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.2px;
}

.add-device-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Table Styles */
.logs-table-container,
.devices-table-container {
    width: 100%;
    overflow-x: auto;
    height: calc(100vh - 420px); /* Динамическая высота: полная высота минус header, фильтры, карточки */
    min-height: 400px; /* Минимум для маленьких экранов */
    max-height: none; /* Убираем ограничение */
    overflow-y: auto;
    flex: 1; /* Растягивается чтобы занять доступное место */
    display: flex;
    flex-direction: column;
}

/* Адаптивность для разных размеров экрана */
@media (max-width: 1600px) {
    .logs-table-container,
    .devices-table-container {
        height: calc(100vh - 400px);
    }
}

@media (max-width: 1200px) {
    .logs-table-container,
    .devices-table-container {
        height: calc(100vh - 380px);
    }
}

@media (max-width: 768px) {
    .logs-table-container,
    .devices-table-container {
        height: calc(100vh - 350px);
        min-height: 300px;
    }
}

.logs-table,
.devices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    flex: 1;
    display: table;
}

/* Reports Loading Overlay */
.reports-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loading-animation {
    position: relative;
    width: 120px;
    height: 120px;
}

.loading-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
}

.loading-orb-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbPulse 2s ease-in-out infinite, orbGlow 2s ease-in-out infinite;
}

.loading-orb-2 {
    top: 15%;
    right: 15%;
    animation: orbPulse 2s ease-in-out infinite 0.15s, orbGlow 2s ease-in-out infinite 0.15s;
}

.loading-orb-3 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: orbPulse 2s ease-in-out infinite 0.3s, orbGlow 2s ease-in-out infinite 0.3s;
}

.loading-orb-4 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbPulse 2s ease-in-out infinite 0.45s, orbGlow 2s ease-in-out infinite 0.45s;
}

.loading-orb-5 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: orbPulse 2s ease-in-out infinite 0.6s, orbGlow 2s ease-in-out infinite 0.6s;
}

.loading-orb-6 {
    top: 15%;
    left: 15%;
    animation: orbPulse 2s ease-in-out infinite 0.75s, orbGlow 2s ease-in-out infinite 0.75s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 1;
    }
}

@keyframes orbGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.8), 0 0 50px rgba(102, 126, 234, 0.5), 0 0 75px rgba(102, 126, 234, 0.3);
    }
}

.loading-text {
    text-align: center;
    margin-top: 1rem;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 2s ease-in-out infinite;
}

@keyframes textShimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.loading-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Loading Modal */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-modal.show,
.loading-modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(30, 36, 50, 0.95) 0%, rgba(37, 43, 61, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(102, 126, 234, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.loading-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
}

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

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-modal-animation {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-center-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    animation: centerPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes centerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.loading-modal-animation .loading-orb {
    width: 24px;
    height: 24px;
    z-index: 2;
}

.loading-modal-text {
    text-align: center;
    z-index: 2;
    position: relative;
}

.loading-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.loading-modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.loading-modal-progress {
    width: 200px;
    height: 4px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 10px;
    animation: progressMove 2s ease-in-out infinite;
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.6);
}

@keyframes progressMove {
    0% {
        width: 0%;
        background-position: 0% center;
    }
    50% {
        width: 70%;
        background-position: 100% center;
    }
    100% {
        width: 100%;
        background-position: 0% center;
    }
}

.reports-table-wrapper {
    position: relative;
    overflow-x: auto;
    max-width: 100%;
}

#reportsCard .card-content {
    position: relative;
    min-height: 300px;
}

#reportsTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

#reportsTable th,
#reportsTable td {
    border: 1px solid var(--border-secondary);
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
}

#reportsTable thead th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

#reportsTable thead tr:first-child th {
    font-size: 13px;
    padding: 10px 8px;
    border-bottom: 2px solid var(--border-primary);
}

#reportsTable thead tr:last-child th {
    font-size: 11px;
    padding: 6px 4px;
    background: var(--bg-secondary);
}

#reportsTable tbody td {
    background: var(--bg-card);
    font-size: 12px;
}

#reportsTable tbody tr:hover td {
    background: var(--bg-hover);
}

#reportsTable th:first-child,
#reportsTable td:first-child {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    text-align: left;
    padding-left: 12px;
    font-weight: 500;
    position: sticky;
    left: 0;
    z-index: 11;
}

#reportsTable thead tr:first-child th:first-child {
    background: var(--bg-tertiary);
}

#reportsTable thead tr:last-child th:first-child {
    background: var(--bg-secondary);
}

#reportsTable tbody td:first-child {
    background: var(--bg-card);
}

#reportsTable tbody tr:hover td:first-child {
    background: var(--bg-hover);
}

#reportsTable thead tr:first-child th:not(:first-child) {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
}

#reportsTable thead tr:last-child th:not(:first-child),
#reportsTable tbody td:not(:first-child):not([colspan]) {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

#reportsTable tbody td[colspan] {
    padding: 12px;
    color: var(--text-muted);
}

.logs-table thead,
.devices-table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logs-table th,
.devices-table th {
    padding: 4px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logs-table td,
.devices-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
    white-space: nowrap;
    transition: var(--transition-fast);
    font-size: 13px;
    line-height: 1.4;
    vertical-align: top;
}

#todayWorkTable th,
#todayWorkTable td {
    width: 14.28%;
    text-align: center;
}

#todayWorkTable th:nth-child(1),
#todayWorkTable td:nth-child(1) {
    text-align: left;
    width: auto;
}

.logs-table tbody tr,
.devices-table tbody tr {
    height: 28px;
}

.logs-table tbody tr:hover,
.devices-table tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.001);
}

.logs-table tbody tr:last-child td,
.devices-table tbody tr:last-child td {
    border-bottom: none;
}

/* Оптимизация ширины колонок таблиц (адаптивная) */
.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 3%;
    min-width: 40px;
    text-align: center;
    padding: 4px 4px;
}

.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
    width: 5%;
    min-width: 50px;
    text-align: left;
}

.logs-table th:nth-child(3),
.logs-table td:nth-child(3) {
    width: 25%;
    min-width: 150px;
}

.logs-table th:nth-child(4),
.logs-table td:nth-child(4) {
    width: 20%;
    min-width: 120px;
}

.logs-table th:nth-child(5),
.logs-table td:nth-child(5) {
    width: 8%;
    min-width: 60px;
    text-align: center;
}

.logs-table th:nth-child(6),
.logs-table td:nth-child(6) {
    width: 8%;
    min-width: 60px;
    text-align: center;
}

.logs-table th:nth-child(7),
.logs-table td:nth-child(7) {
    width: 12%;
    min-width: 90px;
    text-align: center;
}

.logs-table th:nth-child(8),
.logs-table td:nth-child(8) {
    width: 15%;
    min-width: 100px;
    text-align: center;
}

.devices-table th:nth-child(1),
.devices-table td:nth-child(1) {
    width: 50px;
    text-align: center;
    padding: 8px 4px;
}

.devices-table th:nth-child(2),
.devices-table td:nth-child(2) {
    width: 220px;
    min-width: 200px;
}

.devices-table th:nth-child(3),
.devices-table td:nth-child(3) {
    width: 140px;
    font-family: 'JetBrains Mono', monospace;
}

.devices-table th:nth-child(4),
.devices-table td:nth-child(4) {
    width: 160px;
}

.devices-table th:nth-child(5),
.devices-table td:nth-child(5) {
    width: 110px;
}

.devices-table th:nth-child(6),
.devices-table td:nth-child(6) {
    width: 150px;
}

.devices-table th:nth-child(7),
.devices-table td:nth-child(7) {
    width: 120px;
    text-align: center;
}

/* Auth Icons */
.logs-table .auth-icon {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    margin-right: 6px;
    vertical-align: middle;
}

.logs-table .auth-icon.face {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
    color: var(--accent-primary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.logs-table .auth-icon.password {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.logs-table .auth-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Table Text */
.logs-table .user-name,
.devices-table .device-name {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.logs-table .user-id,
.logs-table .serial-number,
.devices-table .device-ip,
.devices-table .device-last-check {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 12px;
}

.logs-table .device-info,
.devices-table .device-model {
    color: var(--text-secondary);
    font-weight: 500;
}

.logs-table .event-time {
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

/* Action Buttons */
.device-actions,
.table-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.action-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.edit-btn {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
    color: var(--accent-primary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.edit-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0.4) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.delete-btn {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.3) 100%);
    color: var(--accent-danger);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3) 0%, rgba(220, 53, 69, 0.4) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.test-btn {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.3) 100%);
    color: var(--accent-success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.test-btn:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3) 0%, rgba(40, 167, 69, 0.4) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    vertical-align: middle;
}

.status-indicator.online {
    color: var(--accent-success);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-indicator.offline {
    color: var(--accent-danger);
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.status-indicator:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Filters Section */
.filters-section {
    margin: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.filters-header {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-primary);
    min-height: 24px;
}

.filters-header i {
    transition: transform 0.2s ease;
}

.filters-header.expanded i {
    transform: rotate(180deg);
}

.filters-content {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap; /* Элементы переходят на новую строку при нехватке места */
    gap: 8px;
    align-items: end;
    transition: all 0.3s ease;
}

.filters-content.collapsed {
    display: none;
}

.filter-group {
    flex: 1 1 auto; /* Растягиваются но не сжимаются слишком сильно */
    min-width: 150px; /* Минимальная ширина чтобы не "плыли" */
    max-width: 250px; /* Максимальная ширина */
}

.filter-group label {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
    height: 28px;
    line-height: 1.2;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.apply-btn,
.reset-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-normal);
    height: 24px;
    line-height: 1.2;
}

.apply-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

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

.reset-btn {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
}

.reset-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Search Section */
.search-section {
    margin: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-header {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-primary);
    min-height: 24px;
}

.search-content {
    padding: 8px 12px;
}

.search-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 6px 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    transition: var(--transition-normal);
    height: 28px;
    line-height: 1.2;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn,
.clear-search-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-normal);
    height: 24px;
    line-height: 1.2;
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

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

.clear-search-btn {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
}

.clear-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.933rem;
    transition: var(--transition-normal);
    box-sizing: border-box;
    min-height: 38px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.933rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    min-height: 40px;
}

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

.btn-secondary {
    background: none;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-success {
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--accent-danger);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.933rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 40px;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--accent-danger);
    color: #ff4d5e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-icon-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
}

.btn-icon-text i {
    font-size: 16px;
    color: var(--accent-primary);
}

.btn-icon-text:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-icon-text:hover i {
    color: var(--accent-secondary);
}

/* Loading States */
.loading-placeholder,
.empty-placeholder,
.error-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.loading-placeholder .loading {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.empty-placeholder i,
.error-placeholder i {
    font-size: 32px;
    opacity: 0.5;
}

/* Event Items */
.event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.event-item:last-child {
    border-bottom: none;
}

.event-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.event-icon.face {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
    color: var(--accent-primary);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.event-icon.password {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.event-icon.default {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.2) 0%, rgba(108, 117, 125, 0.3) 100%);
    color: var(--text-muted);
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.event-content {
    flex: 1;
}

.event-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.event-details {
    font-size: 12px;
    color: var(--text-muted);
}

.event-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Device Items */
.device-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.device-item:last-child {
    border-bottom: none;
}

.device-info {
    flex: 1;
}

.device-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.device-ip {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--accent-success);
}

.notification-error {
    border-left: 4px solid var(--accent-danger);
}

.notification-info {
    border-left: 4px solid var(--accent-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }
    
    .content-header {
        padding: 20px;
    }
    
    .header-title h1 {
        font-size: 24px;
    }
    
    .filters-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group {
        max-width: 100%; /* На мобильных - полная ширина */
        min-width: 100%;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        margin: 20px;
    }
    
    .logs-container,
    .devices-container {
        margin: 20px;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
        margin: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Login Page Styles */
.login-page {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.login-header .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--text-primary);
}

.login-header .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-normal);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--text-primary);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

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

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-danger);
    font-size: 14px;
    margin-top: 16px;
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 12px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-secondary);
}

/* Additional Styles for Devices */
.devices-content {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.devices-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-muted);
    gap: 12px;
}

.devices-placeholder .loading {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.settings-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-normal);
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-primary);
}

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

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.settings-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-primary);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-description {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.setting-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.setting-item label {
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-input {
    flex: 1;
    min-width: 120px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition-normal);
}

.setting-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-hint {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: var(--transition-normal);
    border-radius: 24px;
    border: 1px solid var(--border-secondary);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: var(--transition-normal);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-color: var(--accent-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.settings-stats {
    margin-top: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
}

.stat-item .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-item .stat-value.success {
    color: var(--accent-success);
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.polling-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.polling-status-item:last-child {
    margin-bottom: 0;
}

.polling-status-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.polling-status-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.polling-status-value.active {
    color: var(--accent-success);
}

.polling-status-value.inactive {
    color: var(--text-muted);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.settings-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon i {
    font-size: 24px;
    color: white;
}

.settings-card-content {
    flex: 1;
}

.settings-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-card-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-card-action {
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.settings-card:hover .settings-card-action {
    color: var(--accent-primary);
    transform: translateX(4px);
}
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
    border-radius: var(--radius-md);
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-status::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-info);
    animation: pulse 2s infinite;
}

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

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

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

/* Календарь */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day-header {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.calendar-day {
    min-height: 100px;
    padding: 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.working-day {
    border-left: 4px solid var(--accent-success);
}

.calendar-day.weekend {
    border-left: 4px solid var(--text-muted);
    opacity: 0.7;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid var(--accent-primary);
}

.calendar-day.has-adjustment {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid #f59e0b;
}

.day-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.adjustment-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    color: #f59e0b;
    font-size: 0.875rem;
}

.workday-card {
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
}

.workday-card label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.workday-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.workday-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-card {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.employees-list {
    display: grid;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.employee-day-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
}

.employee-name {
    font-weight: 500;
    color: var(--text-primary);
}

.employee-times {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.employee-times i {
    margin-right: 5px;
}

/* HiDPI / Retina Display Optimization */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi),
       screen and (min-resolution: 2dppx) {
    :root {
        font-size: 16px;
    }
    
    .sidebar {
        width: 260px;
    }
    
    .sidebar.collapsed {
        width: 75px;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 11px 22px;
        font-size: 0.938rem;
    }
    
    .form-control, input, textarea, select {
        padding: 11px 14px;
        font-size: 0.938rem;
    }
    
    .modal-content {
        max-width: 650px;
    }
    
    .calendar-day {
        min-height: 110px;
        padding: 11px;
    }
    
    .day-number {
        font-size: 1.35rem;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 3),
       screen and (min-resolution: 288dpi),
       screen and (min-resolution: 3dppx) {
    :root {
        font-size: 17px;
    }
    
    .sidebar {
        width: 270px;
    }
    
    .sidebar.collapsed {
        width: 80px;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .form-control, input, textarea, select {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .modal-content {
        max-width: 700px;
    }
    
    .calendar-day {
        min-height: 120px;
        padding: 12px;
    }
    
    .day-number {
        font-size: 1.5rem;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.settings-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon i {
    font-size: 24px;
    color: white;
}

.settings-card-content {
    flex: 1;
}

.settings-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-card-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-card-action {
    font-size: 18px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.settings-card:hover .settings-card-action {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-copyright {
    text-align: center;
    padding: 20px;
    margin-top: auto;
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-copyright a:hover {
    color: var(--text-primary);
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
