/* Тёмная тема с прозрачными элементами */
:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-navbar: rgba(15, 15, 35, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #7289da;
    --accent-secondary: #43b581;
    --accent-danger: #f04747;
    --accent-warning: #faa61a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #43b581 0%, #3ca374 100%);
    --gradient-blue: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(114, 137, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(67, 181, 129, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Навигация */
.navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(114, 137, 218, 0.1);
    transform: translateY(-2px);
}

/* Карточки */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(114, 137, 218, 0.3);
}

.card-header {
    background: rgba(114, 137, 218, 0.1) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 20px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Кнопки */
.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

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

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

.btn-warning {
    background: linear-gradient(135deg, #faa61a 0%, #ff8c00 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f04747 0%, #dc3545 100%);
    color: white;
}

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

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

/* Формы */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(114, 137, 218, 0.25) !important;
    color: var(--text-primary) !important;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

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

/* Списки и таблицы */
.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s;
}

.list-group-item:hover {
    background: rgba(114, 137, 218, 0.1);
    transform: translateX(5px);
}

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

.table th {
    border-color: var(--border-color);
    background: rgba(114, 137, 218, 0.1);
    font-weight: 600;
}

.table td {
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.table-hover tbody tr:hover {
    background: rgba(114, 137, 218, 0.05);
}

/* Баджи */
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-primary {
    background: var(--gradient-blue) !important;
}

.bg-success {
    background: var(--gradient-green) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #faa61a 0%, #ff8c00 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #f04747 0%, #dc3545 100%) !important;
}

.bg-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-secondary) !important;
}

/* Алерты */
.alert {
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-primary {
    background: rgba(114, 137, 218, 0.2);
    border-left: 4px solid var(--accent-primary);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(67, 181, 129, 0.2);
    border-left: 4px solid var(--accent-secondary);
    color: var(--text-primary);
}

.alert-warning {
    background: rgba(250, 166, 26, 0.2);
    border-left: 4px solid var(--accent-warning);
    color: var(--text-primary);
}

.alert-danger {
    background: rgba(240, 71, 71, 0.2);
    border-left: 4px solid var(--accent-danger);
    color: var(--text-primary);
}

.alert-info {
    background: rgba(59, 165, 224, 0.2);
    border-left: 4px solid #3ba5e0;
    color: var(--text-primary);
}

/* Работы (work items) */
.work-item {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.work-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.2);
}

/* Инпут группа */
.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 12px;
}

/* Выбор темы */
.theme-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-badge:hover,
.theme-badge.active {
    background: var(--gradient-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(114, 137, 218, 0.3);
}

/* Заметка про файлообменник */
.file-exchange-note {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.1), rgba(67, 181, 129, 0.1));
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Спиннеры */
.spinner-border {
    color: var(--accent-primary);
}

/* Модальные окна */
.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

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

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

/* Футер */
footer {
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
    padding: 30px 0;
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(114, 137, 218, 0.6);
    }
}

.glow {
    animation: glow 2s infinite;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .navbar-collapse {
        background: var(--bg-navbar);
        padding: 15px;
        border-radius: 12px;
        margin-top: 10px;
        border: 1px solid var(--border-color);
    }
}
