/* Основные переменные цветов */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4e4a6;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* Глобальные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2d1b69 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-attachment: fixed;
    padding-top: 70px;
}

/* Навигация */
.navbar-custom {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    padding: 10px 0;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav > li > a {
    color: var(--text-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 15px !important;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-nav > li > a:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

.navbar-custom .navbar-nav > .active > a {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700) !important;
    color: var(--primary-dark) !important;
    border-radius: 25px;
    margin: 8px 5px;
}

/* Панели и карточки */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

.panel-header-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700) !important;
    color: var(--primary-dark) !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
    text-align: center;
    border: none;
    padding: 15px 20px !important;
}

/* Таблицы */
.table-dark-custom {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table-dark-custom thead th {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    text-align: center;
    padding: 15px 10px;
}

.table-dark-custom tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.table-dark-custom tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.01);
}

.table-dark-custom tbody td {
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    vertical-align: middle;
    padding: 12px 10px;
}

/* Кнопки */
.btn-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--primary-dark);
    background: linear-gradient(45deg, #ffd700, var(--accent-gold));
}

.btn-gold:active {
    transform: translateY(0);
}

/* Текст золотого цвета */
.text-gold {
    color: var(--accent-gold) !important;
}

/* Пагинация */
.pagination {
    margin: 10px 0;
}

.pagination > li > a {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination > li > a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

.pagination > .active > a {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Модальные окна */
.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    border-radius: 13px 13px 0 0;
    padding: 15px 20px;
}

.modal-header .close {
    color: var(--primary-dark);
    text-shadow: none;
    opacity: 0.8;
    font-size: 24px;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
}

/* Изображения */
.img-glow {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
}

.img-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

/* Футер */
.footer-custom {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 20px 0;
    margin-top: 40px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Статус сервера */
.status-online {
    color: var(--success);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-offline {
    color: var(--danger);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Списки */
.list-group-item-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    margin-bottom: 5px;
    border-radius: 8px;
    padding: 12px 15px;
}

.list-group-item-custom strong {
    color: var(--accent-gold);
}

/* Бейджи */
.badge-gold {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
    font-weight: bold;
    border-radius: 12px;
    padding: 5px 10px;
}

/* Метки */
.label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

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

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

.label-warning {
    background: var(--warning);
    color: black;
}

/* Счетчики */
.counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Прогресс бар */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    transition: width 0.6s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .glass-panel {
        margin: 10px 0;
    }
    
    .navbar-custom .navbar-nav > .active > a {
        margin: 5px 0;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 20px;
    }
}

/* Специфические стили для скриншотов */
.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.screenshot-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-info {
    transform: translateY(0);
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

/* Усечение длинного текста */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Дополнительные утилиты */
.mt-4 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-inline { display: inline !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

/* Специальные классы для контента */
.main-content {
    min-height: calc(100vh - 140px);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Анимация загрузки */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}


/* Стили для уведомлений */
.notification-alert {
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(40, 167, 69, 0.95);
    color: white;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.95);
    color: white;
    border-left: 4px solid #17a2b8;
}

.alert .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
}

.alert .close:hover {
    opacity: 1;
}

/* Стили для кнопок в разных состояниях */
.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    border-color: #28a745 !important;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c) !important;
    border-color: #dc3545 !important;
}

/* Анимация для кнопок */
.btn-screenshot {
    transition: all 0.3s ease !important;
    min-width: 120px;
}


/* Оптимизация CSS/JS */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}





/* Дополнительные стили для админ-панели */
.admin-notification {
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.list-group-item-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
    margin-bottom: 5px;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.list-group-item-custom:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.btn-group-justified {
    display: flex;
}

.btn-group-justified .btn {
    flex: 1;
    margin: 0 2px;
}

.dark-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 15px;
}

.dark-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}


/* Дополнительные стили для админ-панели */

/* Темные inputs */
.dark-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 15px;
}

.dark-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Стили для списка скриншотов */
.screenshot-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
}

.screenshot-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.screenshot-checkbox {
    transform: scale(1.2);
}

/* Кнопки групп */
.btn-group-justified {
    display: flex;
}

.btn-group-justified .btn {
    flex: 1;
    margin: 0 2px;
}

/* Стили для pre (вывод команд) */
pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    color: var(--accent-gold-light);
    padding: 10px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 0;
}

/* Дополнительные утилитные классы */
.pull-right {
    float: right !important;
}

.text-right {
    text-align: right !important;
}

.align-items-center {
    align-items: center !important;
}

/* Стили для модальных окон админки */
.modal-content {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
}

.modal-header {
    background: linear-gradient(45deg, var(--accent-gold), #ffd700);
    color: var(--primary-dark);
}

.modal-title {
    font-weight: bold;
    margin: 0;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .btn-group-justified {
        flex-direction: column;
    }
    
    .btn-group-justified .btn {
        margin: 2px 0;
    }
    
    .screenshot-item .row > div {
        margin-bottom: 5px;
    }
    
    .screenshot-item .col-1,
    .screenshot-item .col-2,
    .screenshot-item .col-3,
    .screenshot-item .col-5 {
        width: 100%;
        text-align: center !important;
        margin-bottom: 10px;
    }
}

/* Усечение текста */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}



/* Добавить в style.css */
.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.admin-status {
    margin-top: 15px;
}

.screenshot-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.screenshot-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

.btn-view-screenshot {
    padding: 2px 8px;
    font-size: 12px;
}

/* Стили для статусов */
.status-online {
    color: #28a745;
    text-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.status-offline {
    color: #dc3545;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

/* Адаптивность для админки */
@media (max-width: 768px) {
    .admin-panel .btn {
        margin-bottom: 10px;
    }
    
    .screenshot-management .col-md-6 {
        margin-bottom: 10px;
    }
}


.form-control {
    display: block;
    width: 50%;
    height: 50px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -webkit-transition: border-color 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s;
    transition: border-color 
ease-in-out .15s, box-shadow 
ease-in-out .15s, -webkit-box-shadow 
ease-in-out .15s;