/* --- AMIDEX CORE: RED & BLACK TERMINAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050000;
    background-image: 
        linear-gradient(rgba(139, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: 'Consolas', 'Courier New', monospace;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px;
}

/* --- Навигация с аватаркой --- */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #8b0000;
    background-color: #000;
    cursor: pointer;
    transition: 0.3s;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.site-avatar:hover {
    transform: scale(1.1);
    border-color: #ff3333;
    box-shadow: 0 0 20px #ff3333;
}

.nav-controls {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.nav-wrapper:hover .nav-controls {
    opacity: 1;
    transform: translateX(0);
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(10, 0, 0, 0.9);
    border: 1px solid #660000;
    border-radius: 50%;
    color: #ff3333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    text-decoration: none;
}

.nav-btn:hover {
    background: #330000;
    border-color: #ff3333;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* --- Боковая панель --- */
.side-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: rgba(5, 0, 0, 0.98);
    border-right: 1px solid #8b0000;
    z-index: 999;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.side-nav.active {
    left: 0;
}

.nav-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    margin-bottom: 20px;
}

.nav-title {
    color: #ff3333;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.nav-subtitle {
    color: #666;
    font-size: 11px;
    letter-spacing: 1px;
}

.nav-section {
    margin-bottom: 25px;
    padding: 0 20px;
}

.section-title {
    color: #8b0000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-left: 3px solid #ff3333;
    padding-left: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 5px 0;
    background: rgba(20, 0, 0, 0.4);
    border: 1px solid rgba(102, 0, 0, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(139, 0, 0, 0.15);
    border-color: #ff3333;
    transform: translateX(5px);
    color: #ff3333;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(255, 51, 102, 0.15), transparent);
    border-color: #ff3333;
    color: #ff3333;
    border-left: 3px solid #ff3333;
}

/* --- Основной контейнер --- */
.container {
    background: rgba(10, 0, 0, 0.95);
    border: 1px solid #660000;
    width: 95%;
    max-width: 800px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #660000;
    display: block;
}

.main-content {
    padding: 30px;
}

h1 {
    font-size: 1.8rem;
    letter-spacing: 5px;
    color: #ff3333;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
}

h1::before,
h1::after {
    content: " // ";
    color: #8b0000;
    font-weight: bold;
}

.search-box {
    display: flex;
    border: 1px solid #550000;
    background: #000;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

input[type="text"] {
    background: transparent;
    border: none;
    color: #ffcccc;
    padding: 15px 20px;
    font-family: inherit;
    flex-grow: 1;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: #330000;
    color: #ff3333;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px;
}

.search-box button:hover {
    background: #660000;
}

/* --- Кнопки OSINT --- */
.osint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.osint-btn {
    background: rgba(20, 0, 0, 0.6);
    border: 1px solid #440000;
    border-radius: 8px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.osint-btn:hover {
    background: rgba(139, 0, 0, 0.2);
    border-color: #ff3333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.2);
}

.osint-btn.selected {
    background: rgba(139, 0, 0, 0.3);
    border-color: #ff3333;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.osint-btn i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
    color: #ff3333;
}

.osint-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.osint-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* --- Сетка отчетов --- */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.report-card {
    background: rgba(20, 0, 0, 0.4);
    border: 1px solid #440000;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

.report-card:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(102, 0, 0, 0.3);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #ff3333;
    font-size: 20px;
}

.card-title {
    color: #ff3333;
    font-size: 16px;
    font-weight: bold;
}

.card-content {
    color: #e0e0e0;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(102, 0, 0, 0.2);
}

.stat-value {
    color: #ff3333;
    font-weight: bold;
    font-size: 18px;
}

.stat-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

/* --- Категории в отчете --- */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.category-tag {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid #660000;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 12px;
    color: #ffcccc;
    transition: 0.3s;
}

.category-tag:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: #ff3333;
    color: #ff3333;
}

/* --- Прогресс-бары --- */
.progress-container {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #ffcccc;
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b0000, #ff3333);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* --- Иконки --- */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.icon-small {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* --- Таблицы --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 15px 0;
}

.data-table th {
    background: rgba(139, 0, 0, 0.2);
    color: #ff3333;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #660000;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(102, 0, 0, 0.2);
    color: #e0e0e0;
}

.data-table tr:hover {
    background: rgba(139, 0, 0, 0.05);
}

/* --- Анимации --- */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* --- Сканирующая линия --- */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3333, transparent);
    top: 0;
    left: 0;
    animation: scan 4s infinite linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .container {
        width: 100%;
        margin-top: 80px;
    }
    
    .nav-wrapper {
        top: 10px;
        left: 10px;
    }
    
    .osint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .osint-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}