/* theme-irkutsk.css - Иркутская тема */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #dc2626;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --text-color: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.5s ease;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    transition: all 0.5s ease;
}

.header-container {
    display: flex;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
    transition: all 0.3s ease;
}

.company-brand { flex: 0 0 auto; margin-right: 30px; }

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Navigation */
.nav-menu-container { flex: 1; }

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.nav-menu li { position: relative; }

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    white-space: nowrap;
}

.nav-menu li:first-child a { border-left: none; }

.nav-menu li:hover > a,
.nav-menu li.active > a {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* Content */
.main-content-wrapper {
    padding: 30px;
    min-height: calc(100vh - 170px);
    transition: all 0.3s ease;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card, .settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.info-card:hover, .settings-section:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icons */
.icon-img { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; }
.icon-img-large { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.menu-icon { width: 20px; height: 20px; margin-right: 8px; }

/* Holiday Banner */
.holiday-banner {
    padding: 15px 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.8s ease;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.holiday-message {
    font-size: 1.2em;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.holiday-icon { margin-right: 10px; font-size: 1.4em; }

/* Footer */
.simple-footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    margin-top: 40px;
    transition: all 0.5s ease;
}

.simple-footer p {
    margin: 8px 0;
    transition: all 0.3s ease;
}

/* Buttons */
.phone-button, .mail-button {
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.phone-button { color: #003366; }
.phone-button:hover { background-color: #dc2626; }
.mail-button { color: #fff; }
.mail-button:hover { background-color: #dc2626; }

/* Alerts */
.warning, .error, .success {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid;
}

.warning { background: #fff3cd; border-color: var(--warning-color); }
.error { background: #fee; border-color: var(--danger-color); }
.success { background: #efe; border-color: var(--success-color); }

/* Table */
.cabel-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.cabel-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
    transition: all 0.5s ease;
}

.cabel-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.table-city-header { border-top: 1px solid var(--border-color) !important; }

.cabel-table tr:hover { background-color: rgba(0, 86, 179, 0.05); }

.cabel-table tbody tr:nth-child(even) { background-color: var(--background-color); }

.status-off { color: #dc3545; font-weight: bold; }

/* Tech Specs */
.tech-specs {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.tech-specs p { margin: 5px 0; }

/* Contact */
.contact-details { margin-bottom: 15px; }
.contact-details p { margin: 8px 0; }

/* Section */
.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Holiday Animations */
.sparkle { position: relative; overflow: hidden; }

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -20px;
    animation: sparkleMove 3s infinite linear;
    opacity: 0;
}

@keyframes sparkleMove {
    0% { transform: translateX(-20px) translateY(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100vw) translateY(100vh); opacity: 0; }
}

.holiday-glow { animation: glow 2s ease-in-out infinite alternate; }

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(255,215,0,0.5); }
    to { box-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.6); }
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 20px;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall { to { transform: translateY(100vh); } }

/* Holiday Themes */
.russia-day-theme .main-header,
.russia-day-theme .simple-footer {
    background: linear-gradient(90deg, #ffffff 0%, #1e3a8a 50%, #b91c1c 100%) !important;
    color: #1e3a8a;
}

.russia-day-theme .main-header::after {
    background: linear-gradient(90deg, #ffffff 0%, #1e3a8a 50%, #b91c1c 100%) !important;
}

.russia-day-theme .company-name {
    color: #1e3a8a;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.russia-day-theme .nav-menu li a { color: #1e3a8a; border-left-color: rgba(30, 58, 138, 0.2); }

.russia-day-theme .nav-menu li a:hover,
.russia-day-theme .nav-menu li.active > a {
    background: rgba(255,255,255,0.3);
    color: #b91c1c;
}

.russia-day-theme .simple-footer p { color: #fff; }

.russia-day-theme .simple-footer #holidayFooterMessage { color: #b91c1c; font-weight: bold; }

.russia-day-theme .mobile-menu-btn {
    background: linear-gradient(90deg, #fff 0%, #1e3a8a 50%, #b91c1c 100%) !important;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8) !important;
}

.russia-day-theme .mobile-menu-btn:hover {
    background: linear-gradient(90deg, #f0f0f0 0%, #1a3378 50%, #a51818 100%) !important;
    color: #b91c1c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.victory-day-theme .holiday-banner {
    background: linear-gradient(135deg, #000000 0%, #000000 20%, #FF8C00 20%, #FF8C00 40%, #000000 40%, #000000 60%, #FF8C00 60%, #FF8C00 80%, #000000 80%, #000000 100%) !important;
    border: 2px solid #FF8C00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .header-container { flex-wrap: wrap; padding: 10px; }
    .company-brand, .nav-menu-container { width: 100%; text-align: center; }
    .company-brand { margin-bottom: 10px; }
    .nav-menu { justify-content: center; flex-wrap: wrap; }
    .nav-menu li a { padding: 15px; font-size: 14px; }
    .menu-icon { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; padding: 10px 0; }
    .company-brand { margin-right: 0; }
    .company-name { font-size: 20px; }
    .nav-menu { flex-direction: column; width: 100%; }
    .nav-menu li a { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 20px; justify-content: center; }
    .main-content-wrapper { padding: 20px 15px; }
    .info-cards { grid-template-columns: 1fr; }
    .holiday-banner { margin: 10px; padding: 12px; }
    .holiday-message { font-size: 1em; }
    .icon-img { width: 18px; height: 18px; }
    .icon-img-large { width: 22px; height: 22px; }
}

@media (max-width: 576px) {
    .company-name { font-size: 18px; }
    .info-card { padding: 15px; }
    .holiday-banner { font-size: 14px; padding: 10px; }
}

/* Keep existing unused styles below */
/* .header-info { display: flex; align-items: center; gap: 15px; } */
.city-badge { background: var(--accent-color); color: white; padding: 4px 12px; border-radius: 15px; font-size: 12px; font-weight: bold; }
.ssl-badge { background: var(--success-color); padding: 4px 12px; border-radius: 15px; font-size: 12px; }
.admin-badge { background: var(--accent-color); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.user-info { display: flex; align-items: center; gap: 15px; }
.logout-btn { background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 5px; color: white; text-decoration: none; transition: background 0.3s; }
.logout-btn:hover { background: rgba(255,255,255,0.3); }
.sidebar { width: 280px; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); color: white; height: calc(100vh - 70px); position: fixed; overflow-y: auto; }
.menu { list-style: none; }
.menu li { padding: 18px 25px; border-bottom: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.menu li a { color: #ecf0f1; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.menu li:hover { background: rgba(255,255,255,0.1); border-left: 4px solid var(--accent-color); }
.menu li.active { background: rgba(255,255,255,0.15); border-left: 4px solid var(--accent-color); }
.main-content { margin-left: 280px; padding: 30px; min-height: calc(100vh - 70px); }
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.btn { padding: 12px 25px; background: var(--primary-color); color: white; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; transition: all 0.3s; font-weight: 500; }
.btn:hover { background: var(--secondary-color); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.btn-success { background: #4caf50; color: white; }
.btn-success:hover { background: #45a049; }
.btn-warning { background: #ff9800; color: white; }
.btn-warning:hover { background: #f57c00; }
.btn-danger { background: #f44336; color: white; }
.btn-danger:hover { background: #d32f2f; }
.btn-secondary { background: #757575; color: white; }
.btn-secondary:hover { background: #616161; }
.btn-info { background: #17a2b8; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 14px; transition: border-color 0.3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(0,86,179,0.1); }
.form-grid, .settings-grid, .filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.camera-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin-bottom: 30px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.map-section { background: white; padding: 25px; border-radius: 10px; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
#map { width: 100%; height: 600px; background: var(--background-color); border-radius: 12px; margin-bottom: 30px; box-shadow: var(--shadow); }
.camera-video { width: 100%; height: 200px; background: #1a1a1a; border-radius: 8px; margin: 15px 0; display: flex; align-items: center; justify-content: center; color: #666; font-size: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success-color); display: inline-block; }
.status-dot.offline { background: var(--danger-color); }
.status-online { color: var(--success-color); font-weight: bold; }
.status-offline { color: var(--danger-color); font-weight: bold; }
.status-checking { color: var(--warning-color); font-weight: bold; }
.ptz-control, .audio-control { background: var(--primary-color); color: white; border: none; padding: 8px 16px; border-radius: 5px; margin-right: 10px; cursor: pointer; transition: background 0.3s; }
.ptz-control:hover, .audio-control:hover { background: var(--secondary-color); }
.camera-table, .user-table { width: 100%; border-collapse: collapse; }
.camera-table th, .camera-table td, .user-table th, .user-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.camera-table th, .user-table th { background: var(--background-color); font-weight: 600; color: var(--text-color); }

/* Login Page Specific */
.login-container { width: 100%; max-width: 400px; padding: 40px; background: var(--card-bg); border-radius: 10px; box-shadow: var(--shadow-hover); }
.logo { text-align: center; margin-bottom: 30px; color: var(--text-color); font-size: 24px; font-weight: bold; }
.demo-info { text-align: center; margin-top: 20px; padding: 15px; background: var(--background-color); border-radius: 5px; border-left: 4px solid var(--primary-color); }
.ssl-info { text-align: center; margin-top: 15px; padding: 10px; background: #d4edda; color: #155724; border-radius: 5px; font-size: 14px; }

.role-admin { color: var(--accent-color); font-weight: bold; }
.role-user { color: var(--primary-color); }
.checkbox-group { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.checkbox-group label { margin: 0; font-weight: normal; }
.checkbox-item { display: flex; align-items: center; gap: 8px; }
.camera-list { margin-top: 0; }
.camera-item { padding: 12px; border: 1px solid #ddd; margin-bottom: 10px; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; }
.camera-item:hover { background: #f8f9fa; border-color: var(--primary-color); }
.camera-item.selected { background: #e3f2fd; border-color: var(--primary-color); border-left: 4px solid var(--primary-color); }
.camera-item.placed { border-left: 4px solid var(--success-color); }
.camera-item.not-placed { border-left: 4px solid var(--danger-color); }
.camera-info { font-size: 12px; color: #666; margin-top: 5px; }
.coordinates { font-family: monospace; background: #f8f9fa; padding: 2px 6px; border-radius: 3px; font-size: 11px; }
.action-buttons { display: flex; gap: 5px; }
.icon-btn { padding: 8px 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.icon-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.btn-test { background: #17a2b8; color: white; }
.btn-edit { background: var(--warning-color); color: white; }
.btn-delete { background: var(--danger-color); color: white; }
.btn-view { background: var(--primary-color); color: white; }
.form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.edit-indicator { background: var(--warning-color); color: white; padding: 5px 10px; border-radius: 15px; font-size: 12px; margin-left: 10px; }
.password-note { font-size: 12px; color: #666; margin-top: 5px; display: block; }
.last-checked { font-size: 11px; color: #999; display: block; margin-top: 2px; }
.controls { margin-bottom: 15px; padding: 15px; background: #f8f9fa; border-radius: 5px; }
.status-message { padding: 10px; margin: 10px 0; border-radius: 5px; display: none; }
.status-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.loading { animation: pulse 1.5s ease-in-out infinite; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }
.modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); }
.modal-content { background-color: #fefefe; margin: 5% auto; padding: 20px; border-radius: 8px; width: 90%; max-width: 800px; position: relative; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.close:hover { color: #000; }
.player-controls { margin-top: 15px; }
.ptz-control, .audio-control { background: #007bff; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; margin: 0 5px; }
.ptz-control:hover, .audio-control:hover { background: #0056b3; }