/**
 * SHCD Cyberpunk-Style Global Styles
 * Syrq Highly Confidential Database
 */

:root {
    /* Color Palette - Professional Police Investigation Theme */
    --bg-primary: #1a1d24;
    --bg-secondary: #23272f;
    --bg-tertiary: #2d3340;
    --bg-elevated: #353b48;
    
    --text-primary: #e4e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #3b82f6;
    --accent-blue: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #dc2626;
    
    --border-color: #374151;
    --border-glow: rgba(59, 130, 246, 0.2);
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(59, 130, 246, 0.3);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(to bottom, #1a1d24 0%, #0f1318 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* ================================
   Watermark
   ================================ */
.watermark {
    position: fixed;
    font-size: 16px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    transition: all 1.5s ease-in-out;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ================================
   Header & Navigation
   ================================ */
header {
    background: linear-gradient(135deg, rgba(26, 29, 36, 0.98) 0%, rgba(35, 39, 47, 0.98) 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: var(--accent-primary);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
}

.mobile-menu-btn.active {
    background: var(--accent-danger);
}

.org-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

/* Navigation */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.nav-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    min-width: 50px;
}

.nav-menu li a .nav-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 2px;
}

.nav-menu li a .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: block;
}

.nav-menu li a .nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.nav-menu li a:hover .nav-icon {
    transform: scale(1.1);
}

/* Admin Button */
.admin-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--accent-danger);
    color: #fca5a5;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.admin-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    transform: translateY(-1px);
    color: white;
}

.admin-icon {
    font-size: 14px;
}

.admin-label {
    font-weight: 700;
}

/* Search Section */
.search-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.global-search {
    display: flex;
    align-items: center;
    background: rgba(26, 29, 36, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}

.global-search:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.global-search input {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    width: 180px;
    outline: none;
}

.global-search input::placeholder {
    color: var(--text-muted);
}

.global-search button {
    background: var(--accent-primary);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.global-search button:hover {
    background: var(--accent-blue);
}

/* User Info in Header */
.header-content .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    text-align: right;
    padding: 8px 12px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.user-badge div:first-child {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-badge div:last-child {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 700;
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--accent-danger);
    color: #fca5a5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

/* ================================
   Main Content & Layout
   ================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* Cards with 3D Effect */
.card {
    background: linear-gradient(135deg, rgba(30, 36, 51, 0.9) 0%, rgba(15, 20, 25, 0.9) 100%);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 
        0 10px 40px var(--shadow),
        0 0 0 1px rgba(0, 217, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

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

.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 
        0 15px 60px var(--shadow),
        0 0 40px rgba(0, 217, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Grid Layouts - Advanced Responsive */
.grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Wide screen optimization */
@media (min-width: 1400px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Buttons
   ================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
    color: white;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(139, 149, 165, 0.2), rgba(90, 100, 120, 0.2));
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 149, 165, 0.3), rgba(90, 100, 120, 0.3));
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

/* ================================
   Badges
   ================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border: 1px solid var(--accent-danger);
    color: #fca5a5;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border: 1px solid var(--accent-warning);
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid var(--accent-success);
    color: #6ee7b7;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.badge-secondary {
    background: rgba(139, 149, 165, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ================================
   Tables
   ================================ */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(34, 211, 238, 0.1));
}

th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-cyan);
}

td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

tbody tr {
    transition: all 0.3s;
}

tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

/* ================================
   Forms
   ================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 20, 25, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    background: rgba(15, 20, 25, 0.95);
}

/* ================================
   Alerts
   ================================ */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 2px solid;
    font-weight: 600;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
    color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-success);
    color: #6ee7b7;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-warning);
    color: #fcd34d;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

/* ================================
   Mobile Responsive
   ================================ */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-menu li a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .global-search input {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
    }
    
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
    }
    
    nav {
        order: 3;
        width: 100%;
        display: block !important;
    }
    
    .nav-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: rgba(10, 14, 23, 0.95);
        border-radius: 12px;
        margin-top: 10px;
        border: 2px solid var(--accent-cyan);
        box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3);
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        flex-direction: row;
        padding: 14px 20px;
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .nav-menu li a .nav-icon {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .nav-menu li a .nav-label {
        font-size: 14px;
    }
    
    .search-section {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-btn {
        order: -1;
    }
    
    .global-search {
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .global-search input {
        width: 100%;
    }
    
    .user-info {
        font-size: 12px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .grid {
        gap: 16px;
    }
    
    .card {
        padding: 18px;
    }
}

/* ================================
   Search Result Items
   ================================ */
.search-result-item {
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
    transform: translateX(4px);
}

.search-result-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.search-result-item small {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
}
