/* 
 * theme.css - Shared Cyber/Neon Styles 
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
}

body {
    background-color: #000;
    color: white;
}

/* Full-screen Cyber App Layout */
.cyber-app-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overscroll-behavior-y: contain;
}

/* CYBER UTILITIES */
.neon-text {
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
}

.neon-border {
    border: 1px solid rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* MODAL BASE */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(5, 5, 10, 0.95);
    padding: 30px;
    border: 1px solid #00f2ff;
    width: 500px;
    max-width: 95%;
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.2);
    text-align: center;
    position: relative;
}

/* BUTTONS */
.cyber-btn {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid #00f2ff;
    color: #00f2ff;
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cyber-btn:hover {
    background: rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* MATRIX CANVAS BACKGROUND */
#matrix-canvas, #sidebar-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}
::-webkit-scrollbar-thumb {
    background: #00f2ff;
    box-shadow: 0 0 10px #00f2ff;
}

/* SHAPE EFFECTS */
.shape {
    position: absolute;
    border: 2px solid;
    pointer-events: none;
    z-index: 1;
    animation: shapeFade 4s forwards;
}

.shape.circle { border-radius: 50%; width: 50px; height: 50px; }
.shape.square { width: 50px; height: 50px; }
.shape.triangle {
    width: 0; height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid;
    background: transparent !important;
}

@keyframes shapeFade {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

/* CYBER ALERT OVERRIDE */
.alert-modal .modal-content {
    border: 2px solid #ff003c;
    box-shadow: 0 0 50px rgba(255, 0, 60, 0.3);
}

.alert-confirm-btn {
    border-color: #00ff41;
    color: #00ff41;
}

.alert-cancel-btn {
    border-color: #ff003c;
    color: #ff003c;
}

/* --- RESPONSIVE BASE --- */
@media (max-width: 768px) {
    .cyber-app-body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }

    .modal-content {
        padding: 20px;
        width: 85%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .cyber-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}
