/* SCP Foundation Dossier Style */
:root {
    /* Основные цвета в HSL формате */
    --bg-primary: 220 13% 18%; /* #2a2d3a */
    --bg-secondary: 220 13% 20%; /* #30333f */
    --bg-tertiary: 220 13% 16%; /* #252731 */
    --text-primary: 0 0% 95%; /* #f2f2f2 */
    --text-secondary: 220 7% 80%; /* #cccdd1 */
    --text-muted: 220 7% 65%; /* #a1a3a8 */
    --accent-red: 0 75% 55%; /* #de4444 */
    --accent-orange: 25 85% 55%; /* #e67e22 */
    --accent-blue: 210 75% 55%; /* #3498db */
    --accent-green: 140 55% 45%; /* #27ae60 */
    --accent-purple: 270 50% 55%; /* #8e44ad */
    --accent-teal: 180 55% 45%; /* #16a085 */
    --border-color: 220 13% 25%; /* #3a3d4a */
    --shadow-color: 220 13% 10%; /* #191b21 */
}

/* Общие стили */
* {
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    font-family: 'Courier New', 'Lucida Console', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

/* Заголовок досье */
.dossier-header {
    background: linear-gradient(135deg, hsl(var(--bg-tertiary)), hsl(var(--bg-secondary)));
    border-bottom: 3px solid hsl(var(--accent-red));
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px hsla(var(--shadow-color), 0.7);
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.classification-badge {
    background: hsl(var(--accent-red));
    color: hsl(var(--text-primary));
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 2px 8px hsla(var(--accent-red), 0.3);
}

.dossier-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px hsla(var(--shadow-color), 0.8);
}

.object-id {
    font-size: 1rem;
    color: hsl(var(--text-muted));
    font-weight: bold;
    letter-spacing: 1px;
}

.access-level {
    text-align: right;
}

.access-badge {
    background: hsl(var(--accent-blue));
    color: hsl(var(--text-primary));
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px hsla(var(--accent-blue), 0.3);
}

.timestamp {
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
}

/* Навигационные вкладки */
.tabs-container {
    background: hsl(var(--bg-secondary));
    border-bottom: 2px solid hsl(var(--border-color));
    padding: 0;
    overflow-x: auto;
}

.dossier-tabs {
    display: flex;
    gap: 2px;
    min-width: 100%;
    padding: 0 1rem;
}

.dossier-tab {
    position: relative;
    background: hsl(var(--bg-tertiary));
    color: hsl(var(--text-secondary));
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    min-width: 150px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
    margin-right: 10px;
}

.dossier-tab:hover {
    background: hsl(var(--bg-secondary));
    color: hsl(var(--text-primary));
    transform: translateY(-2px);
}

.dossier-tab.active {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    border-top-color: var(--tab-color, hsl(var(--accent-red)));
    box-shadow: 0 -3px 10px hsla(var(--shadow-color), 0.5);
}

/* Цвета вкладок */
.tab-red { --tab-color: hsl(var(--accent-red)); }
.tab-orange { --tab-color: hsl(var(--accent-orange)); }
.tab-blue { --tab-color: hsl(var(--accent-blue)); }
.tab-green { --tab-color: hsl(var(--accent-green)); }
.tab-purple { --tab-color: hsl(var(--accent-purple)); }
.tab-teal { --tab-color: hsl(var(--accent-teal)); }

.dossier-tab.active.tab-red { border-top-color: hsl(var(--accent-red)); }
.dossier-tab.active.tab-orange { border-top-color: hsl(var(--accent-orange)); }
.dossier-tab.active.tab-blue { border-top-color: hsl(var(--accent-blue)); }
.dossier-tab.active.tab-green { border-top-color: hsl(var(--accent-green)); }
.dossier-tab.active.tab-purple { border-top-color: hsl(var(--accent-purple)); }
.dossier-tab.active.tab-teal { border-top-color: hsl(var(--accent-teal)); }

.tab-label {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dossier-page {
    background: hsl(var(--bg-primary));
    min-height: 500px;
}

.content-section {
    padding: 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid hsl(var(--border-color));
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
    color: hsl(var(--text-primary));
}

.section-classification {
    background: hsl(var(--accent-orange));
    color: hsl(var(--text-primary));
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Информационные панели */
.info-panel {
    background: hsl(var(--bg-secondary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px hsla(var(--shadow-color), 0.3);
}

.panel-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
    border-bottom: 1px solid hsl(var(--border-color));
    padding-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

/* Информационная сетка */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed hsl(var(--border-color));
}

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

.info-label {
    font-weight: bold;
    color: hsl(var(--text-secondary));
    min-width: 120px;
}

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

/* Статусы */
.status-active {
    color: hsl(var(--accent-green)) !important;
}

.danger-safe {
    color: hsl(var(--accent-green)) !important;
}

.status-online {
    color: hsl(var(--accent-green)) !important;
}

.status-completed {
    background: hsl(var(--accent-green));
    color: hsl(var(--text-primary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.status-in-progress {
    background: hsl(var(--accent-orange));
    color: hsl(var(--text-primary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.status-stable {
    background: hsl(var(--accent-green));
    color: hsl(var(--text-primary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.status-beta {
    background: hsl(var(--accent-orange));
    color: hsl(var(--text-primary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

/* Навыки */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: bold;
    color: hsl(var(--text-secondary));
    min-width: 120px;
}

.skill-level {
    flex: 1;
    background: hsl(var(--bg-tertiary));
    height: 8px;
    border-radius: 4px;
    margin-left: 1rem;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--accent-blue)), hsl(var(--accent-green)));
    transition: width 0.3s ease;
}

/* Проекты */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: hsl(var(--bg-tertiary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow-color), 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: hsl(var(--text-primary));
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.project-description {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-features ul {
    margin: 0;
    padding-left: 1.5rem;
    color: hsl(var(--text-secondary));
}

.project-features li {
    margin-bottom: 0.3rem;
}

/* Статистика */
.stats-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid hsl(var(--border-color));
}

.stats-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: hsl(var(--bg-tertiary));
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid hsl(var(--border-color));
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: hsl(var(--accent-blue));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* AI Чат */
.ai-chat-container {
    background: hsl(var(--bg-tertiary));
    border-radius: 8px;
    overflow: hidden;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: hsl(var(--bg-primary));
}

.system-message,
.user-message,
.ai-message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.system-message {
    background: hsl(var(--bg-secondary));
    border-left-color: hsl(var(--accent-orange));
}

.user-message {
    background: hsl(var(--bg-secondary));
    border-left-color: hsl(var(--accent-blue));
}

.ai-message {
    background: hsl(var(--bg-secondary));
    border-left-color: hsl(var(--accent-green));
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.message-sender {
    font-weight: bold;
    color: hsl(var(--text-primary));
}

.message-time {
    color: hsl(var(--text-muted));
}

.message-content {
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

.chat-input-section {
    padding: 1rem;
    background: hsl(var(--bg-secondary));
}

.chat-input {
    background: hsl(var(--bg-primary)) !important;
    border: 1px solid hsl(var(--border-color)) !important;
    color: hsl(var(--text-primary)) !important;
}

.chat-input:focus {
    border-color: hsl(var(--accent-blue)) !important;
    box-shadow: 0 0 0 0.2rem hsla(var(--accent-blue), 0.25) !important;
}

.chat-send-btn {
    background: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
}

/* Возможности AI */
.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.capability-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.capability-text strong {
    color: hsl(var(--text-primary));
    display: block;
    margin-bottom: 0.3rem;
}

.capability-text p {
    margin: 0;
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* Быстрые команды */
.quick-commands {
    display: grid;
    gap: 0.5rem;
}

.quick-cmd-btn {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    border: 1px solid hsl(var(--border-color));
    padding: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Программы */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    text-decoration: none;
}

.programs-grid {
    display: grid;
    gap: 1.5rem;
}

.program-card {
    background: hsl(var(--bg-tertiary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsla(var(--shadow-color), 0.3);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.program-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: hsl(var(--text-primary));
}

.program-version {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.program-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.program-language {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.program-description {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
    line-height: 1.5;
}

.program-features ul {
    margin: 0;
    padding-left: 1.5rem;
    color: hsl(var(--text-secondary));
}

.program-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Полезные ресурсы */
.resource-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-category {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.resource-category:hover,
.resource-category.active {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    text-decoration: none;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    background: hsl(var(--bg-tertiary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 1.5rem;
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resource-title a {
    color: hsl(var(--text-primary));
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.resource-title a:hover {
    color: hsl(var(--accent-blue));
}

.resource-rating {
    display: flex;
    gap: 0.2rem;
}

.star-filled {
    color: hsl(var(--accent-orange));
}

.star-empty {
    color: hsl(var(--text-muted));
}

.resource-description {
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.resource-tag {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.resource-actions {
    display: flex;
    gap: 0.5rem;
}

/* Быстрые ссылки */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    color: hsl(var(--text-secondary));
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    text-decoration: none;
}

/* Код сниппеты */
.commands-section {
    display: grid;
    gap: 1.5rem;
}

.command-group h5 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.code-snippet {
    background: hsl(var(--bg-primary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
}

.code-snippet code {
    color: hsl(var(--accent-green));
    background: none;
    padding: 0;
    display: block;
    margin-bottom: 0.3rem;
}

/* Контакты */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: bold;
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.form-control {
    background: hsl(var(--bg-primary)) !important;
    border: 1px solid hsl(var(--border-color)) !important;
    color: hsl(var(--text-primary)) !important;
    padding: 0.8rem !important;
    border-radius: 6px !important;
    font-family: 'Courier New', monospace !important;
}

.form-control:focus {
    border-color: hsl(var(--accent-blue)) !important;
    box-shadow: 0 0 0 0.2rem hsla(var(--accent-blue), 0.25) !important;
    background: hsl(var(--bg-primary)) !important;
}

.form-control::placeholder {
    color: hsl(var(--text-muted)) !important;
}

.form-check-input {
    background-color: hsl(var(--bg-primary)) !important;
    border-color: hsl(var(--border-color)) !important;
}

.form-check-input:checked {
    background-color: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
}

.form-check-label {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.contact-submit-btn {
    background: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
    color: hsl(var(--text-primary)) !important;
    padding: 0.8rem 1.5rem !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    justify-content: center !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: hsl(var(--bg-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent-blue));
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-weight: bold;
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: hsl(var(--text-primary));
    font-size: 1rem;
}

.contact-value a {
    color: hsl(var(--accent-blue));
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

/* Предпочтения связи */
.communication-preferences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pref-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--text-secondary));
    min-width: 150px;
}

.pref-rating {
    flex: 1;
    background: hsl(var(--bg-tertiary));
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--accent-red)), hsl(var(--accent-orange)), hsl(var(--accent-green)));
    transition: width 0.3s ease;
}

/* Статистика контактов */
.contact-stats {
    display: grid;
    gap: 1rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    background: hsl(var(--bg-tertiary));
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid hsl(var(--border-color));
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: hsl(var(--accent-blue));
    margin-bottom: 0.3rem;
}

.stat-label {
    color: hsl(var(--text-secondary));
    font-size: 0.8rem;
}

/* Подвкладки */
.subtabs-container {
    background: hsl(var(--bg-secondary));
    border-bottom: 1px solid hsl(var(--border-color));
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.subtabs {
    display: flex;
    gap: 1px;
}

.subtab {
    background: hsl(var(--bg-tertiary));
    color: hsl(var(--text-secondary));
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: bold;
}

.subtab:hover {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    text-decoration: none;
}

.subtab.active {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    border-top-color: hsl(var(--accent-orange));
}

/* Видео сетки */
.videos-grid,
.ai-videos-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-item,
.ai-video-item {
    background: hsl(var(--bg-tertiary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover,
.ai-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px hsla(var(--shadow-color), 0.4);
}

.video-card,
.video-container {
    height: auto !important;
    min-height: 200px;
}

.video-container video {
    max-height: 80vh !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px;
    background: #181a1f;
    display: block;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: hsl(var(--text-primary));
    margin-bottom: 0.8rem;
}

.video-description {
    color: hsl(var(--text-secondary));
    line-height: 1.5;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.video-duration,
.video-date,
.video-platform,
.video-resolution,
.video-fps {
    background: hsl(var(--bg-primary));
    color: hsl(var(--text-secondary));
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 3px;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
}

/* AI Фото сетка */
.ai-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ai-photo-item {
    background: hsl(var(--bg-tertiary));
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px hsla(var(--shadow-color), 0.4);
}

.photo-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ai-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ai-photo:hover {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.btn-view {
    background: hsla(var(--bg-primary), 0.8);
    border: 2px solid hsl(var(--accent-blue));
    color: hsl(var(--text-primary));
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-view:hover {
    background: hsl(var(--accent-blue));
    transform: scale(1.1);
}

.photo-info {
    padding: 1.5rem;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.prompt-block {
    background: hsl(var(--bg-primary));
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid hsl(var(--accent-green));
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prompt-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: hsl(var(--accent-green));
    letter-spacing: 1px;
}

.copy-prompt-btn {
    background: transparent;
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-secondary));
    padding: 0.3rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-prompt-btn:hover {
    background: hsl(var(--accent-green));
    color: hsl(var(--text-primary));
    border-color: hsl(var(--accent-green));
}

.prompt-text {
    font-style: italic;
    color: hsl(var(--text-secondary));
    margin: 0;
    padding: 0.5rem 0;
    border-left: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
}

/* Модальное окно для изображений */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsla(var(--bg-primary), 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.image-modal-content {
    background: hsl(var(--bg-secondary));
    border: 2px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px hsla(var(--shadow-color), 0.8);
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: hsl(var(--text-secondary));
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: hsl(var(--accent-red));
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-modal-info h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.prompt-display {
    background: hsl(var(--bg-tertiary));
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid hsl(var(--accent-green));
    font-family: 'Courier New', monospace;
    color: hsl(var(--text-secondary));
    font-style: italic;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: hsl(var(--accent-green));
    color: hsl(var(--text-primary));
    padding: 1rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px hsla(var(--shadow-color), 0.5);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .subtabs {
        flex-direction: column;
    }
    
    .ai-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .image-modal-content {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Исправление иконки bug */
.templates/pages/useful.html .quick-cmd-btn[data-command*="отладка"] i[data-feather="bug"] {
    display: none;
}

.templates/pages/useful.html .quick-cmd-btn[data-command*="отладка"]:before {
    content: "🐛";
    margin-right: 0.5rem;
}

/* Подвал */
.dossier-footer {
    background: hsl(var(--bg-tertiary));
    border-top: 2px solid hsl(var(--border-color));
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-classification {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

.footer-warning {
    color: hsl(var(--accent-red));
    font-size: 0.9rem;
    font-weight: bold;
}

/* Кнопки */
.btn {
    font-family: 'Courier New', monospace !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.btn-primary {
    background: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
}

.btn-primary:hover {
    background: hsl(210 75% 45%) !important;
    border-color: hsl(210 75% 45%) !important;
}

.btn-outline-primary {
    color: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
}

.btn-outline-primary:hover {
    background: hsl(var(--accent-blue)) !important;
    border-color: hsl(var(--accent-blue)) !important;
}

.btn-outline-secondary {
    color: hsl(var(--text-secondary)) !important;
    border-color: hsl(var(--border-color)) !important;
}

.btn-outline-secondary:hover {
    background: hsl(var(--bg-secondary)) !important;
    border-color: hsl(var(--border-color)) !important;
    color: hsl(var(--text-primary)) !important;
}

.btn-outline-info {
    color: hsl(var(--accent-teal)) !important;
    border-color: hsl(var(--accent-teal)) !important;
}

.btn-outline-info:hover {
    background: hsl(var(--accent-teal)) !important;
    border-color: hsl(var(--accent-teal)) !important;
}

/* Алерты */
.alerts-section {
    margin-bottom: 2rem;
}

.alert {
    background: hsl(var(--bg-secondary)) !important;
    border: 1px solid !important;
    color: hsl(var(--text-primary)) !important;
    border-radius: 6px !important;
    font-family: 'Courier New', monospace !important;
}

.alert-success {
    border-color: hsl(var(--accent-green)) !important;
    background: hsla(var(--accent-green), 0.1) !important;
}

.alert-danger {
    border-color: hsl(var(--accent-red)) !important;
    background: hsla(var(--accent-red), 0.1) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dossier-header {
        padding: 1rem 0;
    }
    
    .dossier-title {
        font-size: 1.8rem;
    }
    
    .dossier-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 0.5rem;
    }
    
    .dossier-tab {
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-row {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .info-panel {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .dossier-title {
        font-size: 1.5rem;
    }
    
    .dossier-tab {
        min-width: 100px;
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .programs-grid {
        grid-template-columns: 1fr;
    }
}
