/* GENERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: black;
    color: #00ffcc;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* LOGIN PAGE */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: rgba(0,0,0,0.85);
    padding: 40px;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 25px #00ffcc;
    width: 350px;
    max-width: 90%;
    text-align: center;
}

.login-box input, .login-box button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

/* DASHBOARD HEADER */
.intel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0,0,0,0.85);
    border-bottom: 1px solid #00ffcc;
    gap: 15px;
}

.intel-header .left h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 2px;
}

.intel-header .left p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.7;
}

.intel-header .right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 8px 15px;
    border: 1px solid red;
    color: red;
    text-align: center;
}

.logout {
    background: red;
    border: none;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
}

/* STATS */
.intel-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 30px 10px;
    gap: 15px;
}

.stat-box {
    background: rgba(0,0,0,0.85);
    padding: 20px;
    width: 250px;
    flex: 1 1 200px;
    text-align: center;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 10px #00ffcc;
}

.status-green {
    color: #00ff00;
    font-weight: bold;
}

/* CONTROL PANEL */
.control-panel {
    padding: 0 20px;
}

#search {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.categories button {
    flex: 1 1 120px;
    padding: 8px 15px;
    cursor: pointer;
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    justify-content: center;
}

.file-list, .viewer-box {
    flex: 1 1 350px;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    border: 1px solid #00ffcc;
    min-width: 300px;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-list li {
    padding: 10px;
    border-bottom: 1px solid #222;
}

.file-list a {
    color: #00ffcc;
    word-break: break-word;
    text-decoration: none;
}

iframe {
    width: 100%;
    height: 400px;
    background: white;
    min-height: 300px;
}

/* RESPONSIVE MEDIA QUERIES */
@media screen and (max-width: 1024px) {
    .intel-header {
        flex-direction: column;
        text-align: center;
    }

    .intel-header .right {
        justify-content: center;
    }

    .intel-stats {
        flex-direction: column;
        align-items: center;
    }

    .main-content {
        flex-direction: column;
        padding: 10px;
    }

    iframe {
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .categories button {
        flex: 1 1 100%;
    }

    .stat-box {
        width: 90%;
    }

    iframe {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    iframe {
        height: 200px;
    }
}
