/* ============================================
   016 CYBER PANEL - DARK TECH THEME
   ============================================ */

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

/* Dark Theme Base */
html {
    background: #0a0e27 !important;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    background: #0a0e27 !important;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 50px 50px !important;
    min-height: 100vh;
    color: #e0e0e0 !important;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Cyber Watermark */
body::after {
    content: '< 016 CYBER PANEL />';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    color: rgba(0, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.3em;
    white-space: nowrap;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.4) !important;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.15), transparent);
    animation: headerShine 3s infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    color: #00ffff !important;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3) !important;
    letter-spacing: 3px;
}

.header-content h1::before {
    content: '> ';
    color: #00ff88;
}

.header-content h1::after {
    content: ' _';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
}

.user-info span {
    color: #00ffff !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.user-info span::before {
    content: '[ ';
    color: #00ff88;
}

.user-info span::after {
    content: ' ]';
    color: #00ff88;
}

/* ============================================
   BUTTONS
   ============================================ */
.back-btn, .logout-btn {
    background: linear-gradient(135deg, #ff0055 0%, #cc0044 100%) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid rgba(255, 0, 85, 0.5) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.back-btn {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%) !important;
    color: #0a0e27 !important;
    border: 2px solid rgba(0, 255, 255, 0.5) !important;
}

.back-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6) !important;
    transform: translateY(-2px);
}

.logout-btn:hover {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.6) !important;
    transform: translateY(-2px);
}

.btn {
    width: 100%;
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%) !important;
    color: #0a0e27 !important;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3) !important;
}

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

/* ============================================
   AUTH BOX (Login/Register)
   ============================================ */
.auth-box {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.4) !important;
    border-radius: 20px;
    padding: 50px;
    max-width: 450px;
    margin: 100px auto;
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 35px;
    color: #00ffff !important;
    font-size: 2.5rem;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.5) !important;
    letter-spacing: 2px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group label::before {
    content: '▸ ';
    color: #00ff88;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    background: rgba(10, 14, 39, 0.9) !important;
    color: #e0e0e0 !important;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Consolas', monospace;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff !important;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 10px rgba(0, 255, 255, 0.1) !important;
    background: rgba(10, 14, 39, 0.95) !important;
}

.form-group input::placeholder {
    color: rgba(224, 224, 224, 0.4) !important;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: cardScan 2s linear infinite;
}

@keyframes cardScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1) !important;
    border-color: #00ffff !important;
}

.stat-card h3 {
    color: #00ffff !important;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00ffff !important;
    margin-bottom: 10px;
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 255, 255, 0.5) !important;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.navigation-menu {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
}

.navigation-menu h2 {
    color: #00ffff !important;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navigation-menu h2::before {
    content: '// ';
    color: #00ff88;
}

.menu-items {
    display: grid;
    gap: 20px;
}

.menu-item {
    background: rgba(15, 20, 50, 0.7) !important;
    border: 2px solid rgba(0, 255, 255, 0.2) !important;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: block;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    border-color: #00ffff !important;
    transform: translateX(10px);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.05) !important;
    background: rgba(15, 20, 50, 0.9) !important;
}

.menu-item h3 {
    color: #00ffff !important;
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item h3::before {
    content: '> ';
    color: #00ff88;
}

.menu-item p {
    color: #b0b0b0 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form-container {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
}

.search-form-container h2 {
    color: #00ffff !important;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-form .btn {
    width: auto;
    padding: 12px 35px;
    margin-top: 15px;
}

/* ============================================
   RESULTS TABLE
   ============================================ */
.results-container {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 20, 50, 0.98) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05) !important;
}

.results-container h3 {
    color: #00ffff !important;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
    background: rgba(5, 7, 20, 0.9) !important;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.results-table th {
    background: rgba(0, 255, 255, 0.15) !important;
    padding: 15px 10px;
    text-align: left;
    font-weight: 700;
    color: #00ffff !important;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3) !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2) !important;
    white-space: nowrap;
    color: #e0e0e0 !important;
}

.results-table tr:hover {
    background: rgba(0, 255, 255, 0.08) !important;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #b0b0b0 !important;
    font-size: 1.1rem;
}

/* ============================================
   ALERTS
   ============================================ */
.error {
    background: rgba(255, 0, 85, 0.2) !important;
    color: #ff4d94 !important;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid rgba(255, 0, 85, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2) !important;
}

.success {
    background: rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid rgba(0, 255, 136, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2) !important;
}

/* ============================================
   LINKS
   ============================================ */
a {
    color: #00ffff !important;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8) !important;
}

/* ============================================
   COPY BUTTON
   ============================================ */
.copy-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%) !important;
    color: #0a0e27 !important;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5) !important;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(0, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* ============================================
   TEXT COLORS
   ============================================ */
small {
    color: rgba(224, 224, 224, 0.6) !important;
}

p {
    color: #b0b0b0 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .auth-box {
        margin: 50px auto;
        padding: 35px 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 25px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .results-table {
        font-size: 0.85rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 6px;
    }
}

/* ============================================
   FORCE DARK THEME
   ============================================ */
body, html, div, main, section, article {
    background-color: #0a0e27 !important;
}

/* Override any light theme */
.light-theme,
body.light-theme {
    background: #0a0e27 !important;
    color: #e0e0e0 !important;
}
