:root {
    --primary-color: #00ff9d;
    --secondary-color: #0066ff;
    --accent-color: #ff00cc;
    --background-dark: #0a0a14;
    --background-medium: #13131f;
    --background-light: #1e1e2f;
    --text-primary: #e0e0e0;
    --text-secondary: #9e9eb3;
    --danger: #ff3860;
    --warning: #ffdd57;
    --success: #23d160;
    --info: #209cee;
}

@font-face {
    font-family: 'Cyber';
    src: url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&display=swap');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимация текста с эффектом сканирования */
@keyframes scanline {
    0% {
        background-position: 0 -100vh;
    }
    80%, 100% {
        background-position: 0 100vh;
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

/* Основные контейнеры */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Боковая панель */
.sidebar {
    width: 250px;
    background-color: var(--background-medium);
    border-right: 1px solid rgba(0, 255, 157, 0.1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.logo {
    padding: 0 20px 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-x {
    color: var(--primary-color);
}

.version {
    color: var(--accent-color);
    font-size: 0.8em;
    vertical-align: super;
}

.logo-underline {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 5px auto;
    width: 80%;
}

/* Навигационное меню */
.nav-links {
    list-style: none;
    margin-bottom: auto;
}

.nav-links li {
    transition: all 0.3s ease;
}

.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 255, 157, 0.05);
    padding-left: 25px;
}

.nav-links li a.active {
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
    background-color: rgba(0, 255, 157, 0.05);
}

.nav-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-links li.logout a {
    color: var(--danger);
}

.nav-links li.logout a:hover {
    background-color: rgba(255, 56, 96, 0.05);
}

/* Статус системы */
.system-status {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: var(--background-light);
    border-radius: 5px;
    border-top: 1px solid rgba(0, 255, 157, 0.1);
}

.status-item {
    margin-bottom: 10px;
}

.status-item .label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 6px;
    background-color: var(--background-dark);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: pulse 2s infinite;
}

/* Основное содержимое */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(10, 10, 20, 0) 50%, rgba(0, 255, 157, 0.02) 50%),
        linear-gradient(90deg, rgba(10, 10, 20, 0.03), rgba(0, 255, 157, 0.01), rgba(10, 10, 20, 0.03));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    animation: scanline 8s linear infinite;
    z-index: -1;
}

/* Карточки и панели */
.card {
    background-color: var(--background-medium);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 157, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h2 {
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 10px;
}

/* Кнопки */
button, .btn {
    background-color: var(--background-light);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

button:hover, .btn:hover {
    background-color: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

button:active, .btn:active {
    transform: scale(0.98);
}

button i, .btn i {
    margin-right: 8px;
}

button::after, .btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1);
    transition: 0.5s;
}

button:active::after, .btn:active::after {
    opacity: 1;
    transform: scale(25);
    transition: 0s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--background-dark);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background-color: rgba(255, 56, 96, 0.1);
    box-shadow: 0 0 10px rgba(255, 56, 96, 0.3);
}

/* Форма входа */
.login-container {
    /* Стили удалены, т.к. они определены в HTML */
}

.login-form {
    /* Стили удалены, т.к. они определены в HTML */
}

/* Сетка для дашборда */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    background-color: var(--background-medium);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 157, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 157, 0.2);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
    color: var(--primary-color);
}

.stat-card .stat-title {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stat-card .stat-icon {
    align-self: flex-end;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.6;
}

/* Анимированные терминальные тексты */
.terminal-window {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    height: 300px;
    overflow-y: auto;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(0, 255, 157, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.terminal-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 5px;
}

.dot-red {
    background-color: var(--danger);
}

.dot-yellow {
    background-color: var(--warning);
}

.dot-green {
    background-color: var(--success);
}

.terminal-line {
    margin-bottom: 5px;
    position: relative;
    display: flex;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 8px;
}

.terminal-text {
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(40, end);
}

.terminal-cursor {
    display: inline-block;
    background-color: var(--primary-color);
    width: 10px;
    height: 15px;
    vertical-align: middle;
    margin-left: 3px;
    animation: blink 1s step-end infinite;
}

/* Сканирование */
.scan-animation {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    position: relative;
    margin: 20px 0;
    border-radius: 3px;
    overflow: hidden;
}

.scan-animation::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

/* Утилиты */
.mt-20 {
    margin-top: 20px;
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-success {
    color: var(--success);
}

.text-info {
    color: var(--info);
}

.text-primary {
    color: var(--primary-color);
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
} 