﻿/* Combined CSS: style.css + admin.css + database.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
    user-select: text;
    -webkit-user-select: text;
}

:root {
    --text-main: #eaf3ff;
    --text-soft: #b8cfe8;
    --blue-1: #122238;
    --blue-2: #1a2f4a;
    --blue-3: #274464;
    --line-blue: rgba(90, 165, 255, 0.38);
    --glow-blue: rgba(55, 140, 235, 0.35);
    --glow-red: rgba(180, 45, 65, 0.28);
    --panel-bg: linear-gradient(165deg, rgba(31, 52, 74, 0.94), rgba(23, 40, 58, 0.95));
}

body {
    background-image: url('img/fon.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    backdrop-filter: brightness(0.75) saturate(1.2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(2rem, env(safe-area-inset-top))
             max(2rem, env(safe-area-inset-right))
             max(2rem, env(safe-area-inset-bottom))
             max(2rem, env(safe-area-inset-left));
    color: var(--text-main);
}

/* РҐРѕР»РѕРґРЅРѕРµ СЃРёРЅРµРІР°С‚Рѕ-С‡С‘СЂРЅРѕРµ Р·Р°С‚РµРјРЅРµРЅРёРµ */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 10%, rgba(45, 90, 145, 0.25), transparent 35%),
        radial-gradient(circle at 90% 6%, rgba(165, 40, 58, 0.16), transparent 32%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 20, 50, 0.72) 100%);
    z-index: 0;
    backdrop-filter: blur(2px);
}

/* ========== РџРђР РЇР©РђРЇ РљРђР РўРћР§РљРђ ========== */
.card {
    position: relative;
    z-index: 10;
    max-width: 550px;
    width: 100%;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border-radius: 2.5rem;
    padding: 2rem 2rem 2.2rem;
    text-align: center;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 24px var(--glow-blue), 0 0 0 1px rgba(180, 215, 255, 0.06) inset;
    transition: transform 0.2s ease;
    border: 1px solid var(--line-blue);
    animation: fadeInUp 0.6s ease-out, float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== РњРР“РђР®Р©РђРЇ РЎРР Р•РќРђ ========== */
.siren-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.siren-overlay.active {
    opacity: 1;
    animation: sirenFlash 1s infinite;
}

@keyframes sirenFlash {
    0% {
        background: radial-gradient(ellipse at 10% 50%, rgba(255, 0, 0, 0.25) 0%, transparent 50%);
    }
    25% {
        background: radial-gradient(ellipse at 10% 50%, rgba(255, 0, 0, 0.4) 0%, transparent 60%);
    }
    50% {
        background: radial-gradient(ellipse at 90% 50%, rgba(0, 100, 255, 0.25) 0%, transparent 50%);
    }
    75% {
        background: radial-gradient(ellipse at 90% 50%, rgba(0, 100, 255, 0.4) 0%, transparent 60%);
    }
    100% {
        background: radial-gradient(ellipse at 10% 50%, rgba(255, 0, 0, 0.25) 0%, transparent 50%);
    }
}

.siren-overlay.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 0, 0, 0.08) 48%,
        rgba(255, 0, 0, 0.12) 50%,
        rgba(255, 0, 0, 0.08) 52%,
        transparent 55%,
        transparent 100%
    );
    animation: sideBars 1s infinite;
}

@keyframes sideBars {
    0%, 100% {
        background: repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 0, 0, 0.08) 48%,
            rgba(255, 0, 0, 0.12) 50%,
            rgba(255, 0, 0, 0.08) 52%,
            transparent 55%,
            transparent 100%
        );
    }
    50% {
        background: repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 45%,
            rgba(0, 100, 255, 0.08) 48%,
            rgba(0, 100, 255, 0.12) 50%,
            rgba(0, 100, 255, 0.08) 52%,
            transparent 55%,
            transparent 100%
        );
    }
}

/* ========== РђР’РђРўРђР  ========== */
.avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #0a5f8a;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    transition: 0.2s;
    animation: bluePulse 2s infinite;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.avatar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.online-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background-color: #2ecc71;
    border-radius: 50%;
    border: 2px solid #0a0f1e;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #88ccff, #3388ff, #0a5f8a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    margin-bottom: 0.3rem;
    margin-top: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.3);
}

.rp-tag {
    display: inline-block;
    background: rgba(10, 95, 138, 0.4);
    backdrop-filter: blur(4px);
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #88ccff;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 120, 255, 0.6);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.rp-tag:hover {
    transform: skewX(-5deg);
    letter-spacing: 2px;
}

.bio {
    color: #cceeff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.7rem 1rem;
    border-radius: 1.5rem;
    font-weight: 400;
    border-left: 3px solid #3388ff;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 20, 40, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.9rem 1rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 120, 255, 0.4);
    color: white;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 80%);
    transform: rotate(25deg);
    transition: 0.3s;
    pointer-events: none;
}

.btn:hover::after {
    transform: rotate(25deg) translateX(10%);
}

.btn i {
    font-size: 1.6rem;
    width: 32px;
    text-align: center;
}

.btn-twitch {
    background: rgba(100, 65, 165, 0.7);
    border-color: #9146ff;
}
.btn-twitch:hover {
    background: #9146ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(145, 70, 255, 0.5);
}

.btn-tiktok {
    background: rgba(0, 0, 0, 0.8);
    border-color: #ff004f;
}
.btn-tiktok:hover {
    background: #ff004f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 79, 0.5);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.7);
    border-color: #5865f2;
}
.btn-discord:hover {
    background: #5865f2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.5);
}

/* РЎС‚РёР»СЊ РґР»СЏ РєРЅРѕРїРєРё Р‘Р°Р·Р° РґР°РЅРЅС‹С… */
.btn-database {
    background: rgba(0, 150, 100, 0.7);
    border-color: #00cc88;
}
.btn-database:hover {
    background: #00cc88;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 204, 136, 0.5);
}

.effect-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 120, 255, 0.3);
}

.effect-btn {
    background: rgba(0, 20, 40, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 120, 255, 0.5);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    color: #88ccff;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.effect-btn:hover {
    background: rgba(0, 120, 255, 0.3);
    transform: scale(1.02);
}

.effect-btn i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.footer-note {
    margin-top: 1.2rem;
    font-size: 0.7rem;
    opacity: 0.8;
    color: #aaddff;
    border-top: 1px dashed rgba(0, 120, 255, 0.4);
    padding-top: 1rem;
}

.footer-note::before {
    content: "вё»";
    display: block;
    letter-spacing: 4px;
    margin-bottom: 6px;
    opacity: 0.5;
    font-size: 1rem;
}

@keyframes bluePulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.5);}
    100% { box-shadow: 0 0 0 8px rgba(0, 150, 255, 0);}
}

/* РњРѕР±РёР»СЊРЅР°СЏ Р°РґР°РїС‚Р°С†РёСЏ */
@media (max-width: 550px) {
    body {
        padding: 0.8rem;
    }
    
    .card {
        padding: 1.2rem 1.2rem 1.5rem;
        border-radius: 1.8rem;
        max-width: 95%;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-top: 0.5rem;
    }
    
    .avatar {
        width: 85px;
        height: 85px;
    }
    
    .online-dot {
        width: 14px;
        height: 14px;
        bottom: 5px;
        right: 5px;
    }
    
    .rp-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.8rem;
    }
    
    .bio {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        gap: 8px;
    }
    
    .btn i {
        font-size: 1.3rem;
        width: 24px;
    }
    
    .footer-note {
        font-size: 0.6rem;
        margin-top: 1rem;
    }
    
    .effect-controls {
        gap: 0.6rem;
    }
    
    .effect-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    .bio {
        font-size: 0.75rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-3px);
    }
}

/* ===== POLICE TABLET UI ===== */

.tablet-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 999;
    backdrop-filter: blur(6px);
}

.tablet-frame {
    max-width: 900px;
    margin: 3% auto;
    background: linear-gradient(180deg, #0b1a2a, #050c14);
    border-radius: 14px;
    border: 2px solid #1f6fe0;
    box-shadow: 0 0 40px rgba(0, 100, 255, 0.4);
    overflow: hidden;
}

/* HEADER */
.tablet-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, #0f2a44, #081522);
    border-bottom: 1px solid #1f6fe0;
}

.tablet-title {
    font-weight: 700;
    color: #66ccff;
    letter-spacing: 1px;
}

.tablet-status {
    color: #00ff88;
    font-size: 0.9rem;
}

.tablet-status .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,100%{opacity:1;}
    50%{opacity:0.3;}
}

/* TITLE */
.tablet-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,150,255,0.3);
}

.tablet-section h2 {
    color: #ffaa33;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* CONTENT */
.tablet-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* TABLE */
.tablet-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tablet-content th {
    background: #102a44;
    color: #66ccff;
    padding: 10px;
    border-bottom: 2px solid #1f6fe0;
    text-transform: uppercase;
}

.tablet-content td {
    padding: 10px;
    border-bottom: 1px solid rgba(0,150,255,0.2);
}

.tablet-content tr:hover {
    background: rgba(0, 100, 255, 0.1);
}

/* FOOTER */
.tablet-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid rgba(0,150,255,0.3);
}

.tablet-close {
    background: linear-gradient(135deg, #8b0000, #ff3333);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.tablet-close:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px red;
}

/* ---- admin.css ---- */

.admin-card {
            max-width: 560px;
            text-align: left;
            animation: fadeInUp 0.6s ease-out;
        }

        .admin-title {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 0.25rem;
            background: linear-gradient(135deg, #88ccff, #3388ff, #0a5f8a);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .admin-subtitle {
            color: #a8d8ff;
            font-size: 0.9rem;
            margin-bottom: 1.2rem;
            opacity: 0.9;
        }

        .type-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }

        .type-btn {
            background: rgba(0, 20, 40, 0.8);
            border: 1px solid rgba(0, 120, 255, 0.45);
            border-radius: 1rem;
            color: #d8ecff;
            font-size: 1rem;
            font-weight: 700;
            padding: 0.9rem 1rem;
            transition: all 0.25s ease;
        }

        .type-btn:hover {
            transform: translateY(-2px);
            background: rgba(20, 70, 130, 0.7);
        }

        .type-btn.active {
            background: linear-gradient(135deg, #1f6fe0, #3388ff);
            border-color: #66b0ff;
            color: #ffffff;
            box-shadow: 0 8px 20px rgba(51, 136, 255, 0.35);
        }

        #dbForm {
            display: grid;
            gap: 0.75rem;
        }

        .field-group {
            display: grid;
            gap: 0.75rem;
        }

        .name-field-row {
            display: flex;
            gap: 0.55rem;
            align-items: center;
            width: 100%;
        }

        .name-field-row .field {
            flex: 1 1 auto;
            min-width: 0;
            margin: 0;
        }

        .name-reset-btn {
            border: 1px solid rgba(102, 176, 255, 0.35);
            border-radius: 0.85rem;
            background: rgba(8, 28, 46, 0.92);
            color: #cfe8ff;
            font-size: 0.9rem;
            font-weight: 700;
            padding: 0.95rem 1rem;
            cursor: pointer;
            transition: 0.2s ease;
            white-space: nowrap;
        }

        .name-reset-btn:hover {
            border-color: #66b0ff;
            background: rgba(18, 48, 76, 0.96);
        }

        .name-reset-btn[hidden] {
            display: none !important;
        }

        .field {
            width: 100%;
            border: 1px solid rgba(0, 120, 255, 0.35);
            border-radius: 0.85rem;
            background: rgba(6, 23, 40, 0.82);
            color: #f2f9ff;
            font-size: 1rem;
            padding: 0.95rem 1rem;
            outline: none;
            transition: 0.2s ease;
        }

        .field::placeholder {
            color: rgba(185, 220, 255, 0.75);
        }

        .field--textarea {
            min-height: 92px;
            resize: vertical;
            font-family: inherit;
            line-height: 1.45;
        }

        .field:focus {
            border-color: #66b0ff;
            box-shadow: 0 0 0 3px rgba(51, 136, 255, 0.2);
        }

        .photo-drop {
            border: 1px dashed rgba(102, 176, 255, 0.6);
            border-radius: 0.85rem;
            background: rgba(6, 23, 40, 0.72);
            padding: 0.9rem;
            color: #cfe8ff;
            text-align: center;
            transition: 0.2s ease;
            user-select: none;
        }

        .photo-drop.active {
            border-color: #66b0ff;
            box-shadow: 0 0 0 3px rgba(51, 136, 255, 0.2);
            background: rgba(13, 37, 61, 0.88);
        }

        .photo-drop p {
            margin: 0.25rem 0 0;
            font-size: 0.9rem;
            opacity: 0.9;
        }

        .photo-preview {
            width: 110px;
            height: 110px;
            border-radius: 0.75rem;
            border: 1px solid rgba(102, 176, 255, 0.5);
            object-fit: cover;
            display: block;
            margin: 0.25rem auto 0.5rem;
            background: rgba(5, 18, 31, 0.9);
        }

        .submit-btn {
            margin-top: 0.2rem;
            border-radius: 1rem;
            font-size: 1.05rem;
            padding: 0.95rem 1rem;
            background: linear-gradient(135deg, #1f6fe0, #3388ff);
            border: 1px solid #66b0ff;
            box-shadow: 0 8px 20px rgba(51, 136, 255, 0.35);
        }

        .submit-btn:hover {
            background: linear-gradient(135deg, #1764d1, #2b7ff0);
            transform: translateY(-2px);
        }

        #status {
            margin-top: 0.8rem;
            min-height: 1.2em;
            font-size: 0.95rem;
            font-weight: 600;
        }

        @media (max-width: 550px) {
            .admin-card {
                max-width: 96%;
                padding: 1.35rem 1.2rem 1.5rem;
            }

            .admin-title {
                font-size: 1.55rem;
            }

            .type-btn,
            .field,
            .name-reset-btn,
            .submit-btn {
                font-size: 0.95rem;
            }

            .name-field-row {
                grid-template-columns: 1fr;
            }
        }

/* ---- database.css (without globals) ---- */

.mobile-denied {
position: relative;
z-index: 2;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}

.mobile-denied-card {
max-width: 520px;
width: 92%;
padding: 1.4rem 1.2rem;
border-radius: 18px;
background: rgba(10, 22, 38, 0.9);
border: 1px solid var(--line-blue);
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px var(--glow-blue);
text-align: center;
}

.mobile-denied-card h2 {
margin: 0 0 0.8rem;
color: #ffffff;
text-transform: uppercase;
letter-spacing: 0.8px;
}

.mobile-denied-card p {
margin: 0.45rem 0;
color: #d9e9ff;
}

.tablet {
position: relative;
z-index: 2;
width: 90vw;
height: 85vh;
background: linear-gradient(170deg, rgba(25, 43, 63, 0.95), rgba(18, 33, 50, 0.96));
border-radius: 20px;
border: 1px solid var(--line-blue);
box-shadow:
    0 26px 60px rgba(0,0,0,0.78),
    0 0 0 1px rgba(180, 215, 255, 0.05) inset,
    0 0 22px var(--glow-blue);
display: flex;
flex-direction: column;
overflow: hidden;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 14px 20px;
background: linear-gradient(90deg, rgba(24, 44, 66, 0.98), rgba(36, 55, 78, 0.98));
border-bottom: 1px solid rgba(85, 155, 245, 0.28);
}

.title {
color: #f4f8ff;
font-weight: 800;
letter-spacing: 0.8px;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(70, 150, 245, 0.45);
white-space: nowrap;
}

.title-button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0;
border: none;
background: transparent;
cursor: pointer;
}

.title-button:hover {
color: #ffffff;
text-shadow: 0 0 14px rgba(104, 180, 255, 0.62);
}

.officer-filter {
position: relative;
display: flex;
align-items: center;
}

.officer-filter__button {
display: flex;
align-items: center;
gap: 10px;
min-width: 270px;
padding: 9px 14px;
border-radius: 10px;
border: 1px solid rgba(120, 182, 255, 0.34);
background: linear-gradient(180deg, rgba(18, 36, 58, 0.92), rgba(14, 28, 46, 0.94));
box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 14px rgba(33, 98, 173, 0.16);
color: #eef6ff;
cursor: pointer;
}

.officer-filter__label {
color: var(--text-soft);
font-size: 0.76rem;
font-weight: 700;
letter-spacing: 0.5px;
text-transform: uppercase;
}

.officer-filter__value {
flex: 1;
min-width: 0;
font-size: 0.96rem;
font-weight: 800;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.officer-filter__chevron {
font-size: 0.9rem;
opacity: 0.85;
transition: transform 0.18s ease;
}

.officer-filter.is-open .officer-filter__chevron {
transform: rotate(180deg);
}

.officer-filter__menu {
position: absolute;
top: calc(100% + 10px);
left: 0;
min-width: 100%;
padding: 8px;
border-radius: 12px;
border: 1px solid rgba(120, 182, 255, 0.34);
background: linear-gradient(180deg, rgba(12, 25, 42, 0.98), rgba(10, 20, 34, 0.98));
box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34), 0 0 18px rgba(33, 98, 173, 0.18);
opacity: 0;
visibility: hidden;
transform: translateY(-4px);
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
z-index: 40;
}

.officer-filter.is-open .officer-filter__menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.officer-filter__option {
width: 100%;
padding: 10px 12px;
border: none;
border-radius: 8px;
background: transparent;
color: #e8f2ff;
font-size: 0.92rem;
font-weight: 700;
text-align: left;
cursor: pointer;
}

.officer-filter__option:hover,
.officer-filter__option.is-active {
background: linear-gradient(90deg, rgba(150, 35, 54, 0.18), rgba(44, 120, 214, 0.18));
}

.record-switch {
display: flex;
gap: 10px;
align-items: center;
justify-content: center;
flex: 1;
padding: 0 14px;
}

.switch-total--tooltip {
position: relative;
cursor: pointer;
}

.switch-total__value {
min-width: 32px;
padding: 3px 10px;
border-radius: 999px;
background: linear-gradient(135deg, rgba(170, 41, 60, 0.9), rgba(214, 70, 67, 0.95));
box-shadow: 0 0 12px rgba(201, 63, 73, 0.28);
color: #fff;
font-size: 0.9rem;
font-weight: 800;
text-align: center;
}

.switch-total__tooltip {
position: absolute;
top: calc(100% + 10px);
right: 0;
min-width: 210px;
padding: 10px 12px;
border-radius: 12px;
border: 1px solid rgba(120, 182, 255, 0.34);
background: linear-gradient(180deg, rgba(12, 25, 42, 0.98), rgba(10, 20, 34, 0.98));
box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34), 0 0 18px rgba(33, 98, 173, 0.18);
opacity: 0;
visibility: hidden;
transform: translateY(-4px);
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
z-index: 30;
}

.switch-total--tooltip:hover .switch-total__tooltip {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

.switch-total__tooltip::before {
content: "";
position: absolute;
top: -6px;
right: 20px;
width: 12px;
height: 12px;
background: rgba(11, 23, 38, 0.98);
border-left: 1px solid rgba(120, 182, 255, 0.34);
border-top: 1px solid rgba(120, 182, 255, 0.34);
transform: rotate(45deg);
}

.switch-total__tooltip-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
color: #e8f2ff;
font-size: 0.88rem;
font-weight: 700;
}

.switch-total__tooltip-row + .switch-total__tooltip-row {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(255,255,255,0.08);
}

.switch-btn {
min-width: 170px;
padding: 8px 18px;
border: 1px solid rgba(120, 182, 255, 0.45);
border-radius: 8px;
background: linear-gradient(160deg, rgba(28, 52, 80, 0.94), rgba(20, 38, 59, 0.95));
color: #deebff;
font-weight: 800;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.8px;
cursor: pointer;
transition: all 0.2s ease;
}

.switch-btn--with-total {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
padding-right: 14px;
}

.switch-btn__text {
display: inline-block;
}

.switch-btn:hover {
border-color: rgba(154, 205, 255, 0.65);
box-shadow: 0 0 14px rgba(58, 136, 230, 0.28);
transform: translateY(-1px);
}

.switch-btn.active {
background: linear-gradient(135deg, rgba(33, 68, 103, 0.98), rgba(26, 48, 78, 0.98));
border-color: rgba(175, 220, 255, 0.88);
box-shadow:
    0 0 0 1px rgba(206, 236, 255, 0.2) inset,
    0 0 18px rgba(74, 156, 245, 0.38),
    0 0 10px rgba(182, 38, 58, 0.18);
text-shadow: 0 0 8px rgba(70, 150, 245, 0.5);
color: #ffffff;
}

.switch-btn.active .switch-total__value {
box-shadow: 0 0 14px rgba(201, 63, 73, 0.34);
}

.record-name-cell {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
}

.record-comment-badge {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
flex: 0 0 18px;
border-radius: 999px;
background: linear-gradient(135deg, rgba(192, 52, 76, 0.95), rgba(241, 104, 86, 0.98));
box-shadow: 0 0 12px rgba(223, 86, 91, 0.28);
color: #fff;
font-size: 0.76rem;
font-weight: 900;
line-height: 1;
cursor: help;
}

.record-comment-tooltip {
position: absolute;
left: calc(100% + 10px);
top: 50%;
width: min(320px, 38vw);
padding: 10px 12px;
border-radius: 12px;
border: 1px solid rgba(120, 182, 255, 0.34);
background: linear-gradient(180deg, rgba(12, 25, 42, 0.98), rgba(10, 20, 34, 0.98));
box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34), 0 0 18px rgba(33, 98, 173, 0.18);
color: #e8f2ff;
font-size: 0.84rem;
font-weight: 700;
line-height: 1.4;
white-space: normal;
opacity: 0;
visibility: hidden;
transform: translateY(-50%) translateX(-4px);
transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
z-index: 25;
pointer-events: none;
}

.record-comment-tooltip::before {
content: "";
position: absolute;
left: -6px;
top: 50%;
width: 12px;
height: 12px;
background: rgba(11, 23, 38, 0.98);
border-left: 1px solid rgba(120, 182, 255, 0.34);
border-bottom: 1px solid rgba(120, 182, 255, 0.34);
transform: translateY(-50%) rotate(45deg);
}

.record-comment-badge:hover .record-comment-tooltip {
opacity: 1;
visibility: visible;
transform: translateY(-50%) translateX(0);
}

.status {
color: #8dffb2;
font-size: 0.9rem;
font-weight: 700;
letter-spacing: 0.4px;
text-transform: uppercase;
white-space: nowrap;
}

.dot {
width: 8px;
height: 8px;
background: #00ff88;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
box-shadow: 0 0 10px #00ff88;
}

.search-bar input {
width: 100%;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid rgba(110, 178, 255, 0.32);
background: linear-gradient(180deg, rgba(32, 53, 76, 0.9), rgba(24, 42, 62, 0.92));
color: #f4f8ff;
box-shadow: inset 0 0 12px rgba(0,0,0,0.42), 0 0 10px rgba(24, 92, 175, 0.18);
}

.search-bar input::placeholder {
color: #9eb4cb;
}

.search-bar input:focus {
outline: none;
border-color: rgba(160, 214, 255, 0.75);
box-shadow: inset 0 0 12px rgba(0,0,0,0.42), 0 0 0 2px rgba(68, 147, 238, 0.25);
}

.main {
flex: 1;
display: grid;
grid-template-columns: minmax(360px, 0.82fr) minmax(620px, 1.68fr);
gap: 14px;
padding: 12px 14px 14px;
overflow: hidden;
}

.main-column {
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
}

.main-column--left {
min-width: 0;
}

.main-column--right {
min-width: 0;
}

.records-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
gap: 12px;
flex: 1;
min-height: 0;
}

.search-bar--side {
flex: 0 0 auto;
}

.profile,
.table-wrapper,
.record-details {
background: var(--panel-bg);
border-radius: 12px;
padding: 15px;
overflow-y: auto;
box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.38),
    0 0 16px rgba(26, 95, 168, 0.18),
    0 0 0 1px rgba(146, 203, 255, 0.08) inset;
border: 1px solid rgba(93, 161, 235, 0.18);
}

.profile {
flex: 1;
}

.table-wrapper {
overflow-x: auto;
flex: 1;
}

.record-details {
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
min-width: 0;
}

.profile h3 {
margin-top: 0;
color: #ffffff;
letter-spacing: 0.7px;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(66, 165, 255, 0.45);
}

.profile p {
color: var(--text-main);
}

.profile-shell {
height: 100%;
display: flex;
flex-direction: column;
}

.profile-main {
display: grid;
grid-template-columns: minmax(0, 1fr) 152px;
align-items: start;
gap: 14px;
}

.profile-copy {
min-width: 0;
}

.profile-copy p {
margin: 0 0 14px;
font-size: 0.98rem;
font-weight: 600;
line-height: 1.35;
}

.profile-photo-wrap {
display: flex;
justify-content: center;
align-items: flex-start;
}

.profile-photo {
width: 150px;
height: 150px;
border-radius: 14px;
object-fit: cover;
border: 1px solid rgba(102,176,255,.55);
box-shadow: 0 10px 24px rgba(0,0,0,.25);
display: block;
}

.profile-history {
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid rgba(102,176,255,.22);
}

.empty-state {
margin: 0;
color: #dce9f8;
font-weight: 600;
}

.record-details__empty,
.record-details__panel {
height: 100%;
display: flex;
flex-direction: column;
}

.record-details__empty {
align-items: center;
justify-content: center;
text-align: center;
gap: 12px;
padding: 16px;
color: #d8e7f8;
}

.record-details__empty h3 {
margin: 0;
font-size: 1rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.record-details__empty p {
margin: 0;
font-size: 0.92rem;
line-height: 1.45;
color: rgba(207, 225, 244, 0.8);
}

.record-details__icon {
width: 54px;
height: 54px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 16px;
background: linear-gradient(180deg, rgba(31, 54, 80, 0.92), rgba(16, 28, 43, 0.96));
border: 1px solid rgba(109, 171, 245, 0.26);
box-shadow: 0 10px 24px rgba(0,0,0,0.18);
font-size: 1.1rem;
color: #f1f7ff;
}

.record-details__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding-bottom: 14px;
border-bottom: 1px solid rgba(109, 171, 245, 0.18);
}

.record-details__header > div {
min-width: 0;
flex: 1 1 auto;
}

.record-details__eyebrow {
margin: 0 0 6px;
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: rgba(190, 214, 238, 0.72);
}

.record-details__header h3 {
margin: 0;
font-size: 1.18rem;
line-height: 1.15;
word-break: break-word;
overflow-wrap: anywhere;
}

.record-details__badge {
padding: 7px 10px;
border-radius: 999px;
border: 1px solid rgba(102, 176, 255, 0.24);
background: rgba(20, 39, 60, 0.92);
color: rgba(214, 232, 250, 0.82);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
flex: 0 0 auto;
align-self: flex-start;
}

.record-details__badge.is-alert {
background: linear-gradient(135deg, rgba(131, 33, 49, 0.94), rgba(197, 70, 76, 0.92));
border-color: rgba(243, 126, 126, 0.3);
color: #fff;
}

.record-details__meta {
display: grid;
gap: 10px;
padding: 14px 0;
}

.record-details__meta span {
display: block;
font-size: 0.9rem;
line-height: 1.35;
color: #ddeaf9;
}

.record-details__meta b {
color: rgba(189, 214, 239, 0.72);
font-weight: 800;
}

.record-details__comment {
margin-top: auto;
padding: 14px;
border-radius: 16px;
background: linear-gradient(180deg, rgba(14, 27, 43, 0.98), rgba(10, 20, 33, 0.98));
border: 1px solid rgba(102, 176, 255, 0.18);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.record-details__comment-head {
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #f2f7ff;
}

.record-details__comment p {
margin: 0;
font-size: 0.94rem;
line-height: 1.55;
color: #dce9f8;
white-space: pre-wrap;
word-break: break-word;
}

table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
overflow: hidden;
}

col.col-name {
width: 28%;
}

col.col-passport {
width: 14%;
}

col.col-officer {
width: 16%;
}

col.col-article {
width: 16%;
}

col.col-value {
width: 12%;
}

col.col-place {
width: 14%;
}

th {
background: linear-gradient(180deg, rgba(56, 79, 108, 0.92), rgba(39, 58, 84, 0.96));
color: #ffffff;
padding: 12px 10px;
font-weight: 700;
font-size: 0.9rem;
letter-spacing: 0.6px;
text-transform: uppercase;
border-bottom: 1px solid rgba(144, 190, 235, 0.16);
box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03);
}

tr:first-child th {
background: linear-gradient(180deg, rgba(62, 86, 116, 0.96), rgba(41, 60, 87, 0.98));
}

tr:first-child th:first-child {
border-top-left-radius: 14px;
}

tr:first-child th:last-child {
border-top-right-radius: 14px;
}

tr:first-child th + th {
box-shadow:
inset 1px 0 0 rgba(255,255,255,0.035),
inset 0 -1px 0 rgba(255,255,255,0.04);
}

th + th,
td + td {
border-left: 1px solid rgba(124, 163, 208, 0.1);
}

th + th {
border-left-color: rgba(150, 191, 236, 0.14);
}

td {
padding: 10px;
border-bottom: 1px solid rgba(255,255,255,0.06);
color: #e8f2ff;
font-size: 0.95rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

th.col-name,
td.col-name {
white-space: normal;
overflow: visible;
text-overflow: clip;
word-break: normal;
overflow-wrap: anywhere;
hyphens: none;
line-height: 1.2;
}

th.col-place,
td.col-place,
th.col-value,
td.col-value {
text-align: center;
}

tr {
transition: 0.2s;
cursor: pointer;
}

tr:hover {
background: linear-gradient(90deg, rgba(150, 35, 54, 0.12), rgba(44, 120, 214, 0.15));
}

tr.active {
background: linear-gradient(90deg, rgba(150, 35, 54, 0.22), rgba(44, 120, 214, 0.24));
box-shadow: inset 3px 0 0 #d9ecff;
}

.table-wrapper::-webkit-scrollbar,
.profile::-webkit-scrollbar {
width: 7px;
}

.table-wrapper::-webkit-scrollbar-thumb,
.profile::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, rgba(95, 168, 245, 0.72), rgba(40, 95, 160, 0.82));
border-radius: 10px;
}

.new-row {
animation: newRowFlash 2s ease-out;
}

@keyframes newRowFlash {
0% {
background: rgba(62, 168, 255, 0.68);
box-shadow: 0 0 14px rgba(62, 168, 255, 0.65);
}
50% {
background: rgba(63, 140, 230, 0.35);
}
100% {
background: transparent;
}
}

@media (max-width: 1200px) {
.officer-filter__button {
min-width: 220px;
}

.record-switch {
gap: 8px;
padding: 0 10px;
flex-wrap: wrap;
}

.switch-btn {
min-width: 130px;
padding: 6px 12px;
font-size: 0.82rem;
}

.switch-btn--with-total {
gap: 8px;
}

.main {
grid-template-columns: minmax(300px, 0.92fr) minmax(480px, 1.38fr);
}

.records-layout {
grid-template-columns: minmax(0, 1fr);
}

.profile-main {
grid-template-columns: minmax(0, 1fr);
}

.profile-photo-wrap {
justify-content: flex-start;
}

.record-details {
min-height: 240px;
}
}
