/* =====================================================
   PASPAMPRES SURVEILLANCE SYSTEM - MAIN THEME CSS (FIXED)
   File: assets/css/paspampres-theme.css
   Version: 1.1 - Fixed colors and HUD background
   ===================================================== */

/* CSS Variables - Paspampres Theme (FIXED COLORS) */
:root {
    /* PRIMARY PASPAMPRES COLORS */
    --paspampres-navy: #1B365D;
    --presidential-gold: #D4AF37;
    --indonesian-red: #FF0000;
    
    /* SECONDARY COLORS */
    --dark-navy: #0f1f2f;
    --medium-navy: #2c5282;
    --light-navy: #4a6fa5;
    --accent-gold: #edc84b;
    --light-gold: #f5db7a;
    
    /* BACKGROUND COLORS */
    --bg-dark: rgba(27, 54, 93, 0.8);
    --bg-darker: rgba(15, 31, 47, 0.9);
    --bg-overlay: rgba(27, 54, 93, 0.6);
    
    /* GRID COLORS - GOLD TINTED */
    --grid-color: rgba(212, 175, 55, 0.2);
    --grid-color-secondary: rgba(212, 175, 55, 0.08);
    --grid-color-tertiary: rgba(212, 175, 55, 0.05);
    
    /* BORDER COLORS */
    --border-glow: rgba(212, 175, 55, 0.4);
    --border-light: rgba(212, 175, 55, 0.2);
    --border-strong: rgba(212, 175, 55, 0.6);
    
    /* STATUS COLORS */
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
    
    /* TEXT COLORS */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-gold: var(--presidential-gold);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and HTML - FIXED BACKGROUND WITH PROPER Z-INDEX */
html, body {
    height: 100%;
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--paspampres-navy);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Force consistent background */
body {
    background: linear-gradient(135deg, var(--paspampres-navy) 0%, var(--dark-navy) 50%, var(--medium-navy) 100%);
    min-height: 100vh;
}

/* HUD Background Styling - FIXED Z-INDEX */
.hud-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* Small Grid Pattern - ENHANCED VISIBILITY */
.grid-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color-secondary) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color-secondary) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.8;
    z-index: -4;
    animation: gridPulse 8s ease-in-out infinite alternate;
}

/* Large Grid Pattern - ENHANCED VISIBILITY */
.grid-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--grid-color) 2px, transparent 2px),
        linear-gradient(to bottom, var(--grid-color) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.6;
    z-index: -3;
    animation: gridShift 15s linear infinite;
}

/* Scanner Animation - ENHANCED (REMOVED BOX-SHADOW) */
.scanner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(0deg, 
        rgba(212, 175, 55, 0) 0%, 
        rgba(212, 175, 55, 0.15) 30%,
        rgba(212, 175, 55, 0.3) 50%, 
        rgba(212, 175, 55, 0.15) 70%,
        rgba(212, 175, 55, 0) 100%);
    animation: scan 12s infinite linear;
    z-index: -2;
}

/* HUD Corner Elements */
.hud-background::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-left: 3px solid var(--border-glow);
    border-top: 3px solid var(--border-glow);
    z-index: -1;
    animation: cornerBlink 3s ease-in-out infinite;
}

.hud-background::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-right: 3px solid var(--border-glow);
    border-bottom: 3px solid var(--border-glow);
    z-index: -1;
    animation: cornerBlink 3s ease-in-out infinite 1.5s;
}

/* Animations */
@keyframes scan {
    0% { 
        top: -200px; 
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        top: 100vh; 
        opacity: 0;
    }
}

@keyframes gridPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

@keyframes gridShift {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(5px); }
    50% { transform: translateX(0) translateY(10px); }
    75% { transform: translateX(-5px) translateY(5px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes cornerBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Typography - FIXED COLORS */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--presidential-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Links */
a {
    color: var(--presidential-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-gold);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Buttons - ENHANCED DESIGN */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--presidential-gold), var(--accent-gold));
    color: var(--paspampres-navy);
    border: 1px solid var(--presidential-gold);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: var(--dark-navy);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-overlay);
    border-color: var(--presidential-gold);
    color: var(--presidential-gold);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #20a844);
    color: white;
    border: 1px solid var(--success-green);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #c82333);
    color: white;
    border: 1px solid var(--danger-red);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Cards - ENHANCED DESIGN */
.card {
    background: var(--bg-dark);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3), 
        0 0 40px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--presidential-gold), var(--accent-gold));
    border-radius: 15px 15px 0 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.2), 
        0 0 60px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--border-strong);
}

/* Corner Indicators - ENHANCED */
.corner-indicator {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--presidential-gold);
    z-index: 10;
}

.corner-indicator.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.corner-indicator.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.corner-indicator.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.corner-indicator.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.corner-indicator::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--presidential-gold);
    border-radius: 50%;
    animation: cornerBlink 2s infinite;
    box-shadow: 0 0 8px var(--presidential-gold);
}

.corner-indicator.top-left::after {
    top: -2px;
    left: -2px;
}

.corner-indicator.top-right::after {
    top: -2px;
    right: -2px;
}

.corner-indicator.bottom-left::after {
    bottom: -2px;
    left: -2px;
}

.corner-indicator.bottom-right::after {
    bottom: -2px;
    right: -2px;
}

/* Forms - ENHANCED DESIGN */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--presidential-gold);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--presidential-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 0.2rem rgba(212, 175, 55, 0.25),
        0 0 20px rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Input Icons */
.input-icon {
    position: absolute;
    top: 50px;
    right: 15px;
    color: var(--presidential-gold);
    z-index: 3;
    pointer-events: none;
    font-size: 1.1rem;
}

/* Alerts - ENHANCED DESIGN */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    animation: slideInDown 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.alert i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: var(--success-green);
    color: var(--success-green);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--warning-orange);
    color: var(--warning-orange);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--danger-red);
    color: var(--danger-red);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border-color: var(--info-blue);
    color: var(--info-blue);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.table th {
    background: var(--bg-darker);
    color: var(--presidential-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: var(--success-green);
    color: white;
}

.status-inactive {
    background: var(--danger-red);
    color: white;
}

.status-pending {
    background: var(--warning-orange);
    color: var(--dark-navy);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* System Access Indicator - ENHANCED WITH BETTER SPACING */
.system-access {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--presidential-gold);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(5px);
    z-index: 10;
    margin-top: 10px;
}

.access-dot {
    width: 6px;
    height: 6px;
    background-color: var(--presidential-gold);
    border-radius: 50%;
    margin-right: 6px;
    animation: accessBlink 1.5s infinite;
    box-shadow: 0 0 6px var(--presidential-gold);
}

@keyframes accessBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Version Info */
.version-info {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-darker);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    z-index: 10;
}

/* Glow Overlay Effect */
.glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 15px;
}

.card:hover .glow-overlay {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .corner-indicator {
        width: 15px;
        height: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hud-background::before,
    .hud-background::after {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .grid-large {
        background-size: 75px 75px;
    }
    
    .grid-small {
        background-size: 20px 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}