:root {
    --bg-color: #0c0c0c;
    --accent-color: #39ff14; /* Changed from #ff4545 to neon green */
    --text-color: #c0c0c0;
    --redacted-color: #212121;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Cutive Mono', monospace;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.header {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(57, 255, 20, 0.2); /* Updated shadow color */
}

.header h1 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
    text-shadow: 0 0 5px var(--accent-color);
}

.header h2 {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 5px 0 0;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.page-container {
    width: 90%;
    max-width: 1000px;
    background-color: #141414;
    border: 2px solid var(--text-color);
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid var(--text-color);
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab {
    background-color: #222;
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid var(--text-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    transform: translateY(2px);
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #333;
}

.tab.active {
    background-color: #141414;
    border-bottom: 2px solid #141414;
    transform: translateY(0);
}

.file-content {
    width: 100%;
    padding: 20px;
    line-height: 1.6;
}

.file-title {
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    color: var(--accent-color);
    border-bottom: 2px dashed var(--text-color);
    padding-bottom: 10px;
}

.typing-area {
    white-space: pre-wrap;
    font-family: 'Cutive Mono', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.report-style {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.classified-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Special Elite', cursive;
    color: var(--accent-color);
    font-size: 2rem;
    padding: 5px 15px;
    border: 3px solid var(--accent-color);
    transform: rotate(15deg);
    opacity: 0.5;
}

.report-header {
    margin-bottom: 20px;
}

.report-header p {
    margin: 5px 0;
}

.report-body {
    font-size: 1rem;
}

.redacted, .redacted-small {
    background-color: var(--redacted-color);
    color: var(--redacted-color);
    cursor: default;
    border: 1px solid #444;
    padding: 0 2px;
}

.redacted-small {
    font-size: 0.8em;
}

.warning-text {
    color: var(--accent-color);
    border: 1px dashed var(--accent-color);
    padding: 10px;
    margin-bottom: 20px;
}

.report-form label, .report-form input, .report-form select, .report-form textarea, .report-form button {
    display: block;
    width: 100%;
    font-family: 'Cutive Mono', monospace;
    margin-bottom: 15px;
    background-color: #0c0c0c;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px;
}

.report-form input:focus, .report-form select:focus, .report-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #36b015; /* Updated hover color */
}

.file-list {
    width: 100%;
}

.file-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, transform 0.2s;
}

.file-entry:hover {
    background-color: #222;
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.file-number, .file-date {
    color: var(--accent-color);
    font-weight: bold;
}

.file-title-list {
    flex-grow: 1;
    margin: 0 20px;
}

.search-container {
    display: flex;
    margin-bottom: 20px;
    width: 100%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.search-container input {
    flex-grow: 1;
    font-family: 'Cutive Mono', monospace;
    background-color: #0c0c0c;
    color: var(--text-color);
    border: none;
    padding: 10px;
    outline: none;
}

.search-container input:focus {
    box-shadow: inset 0 0 5px var(--accent-color);
}

.search-container button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-family: 'Cutive Mono', monospace;
}

.search-container button:hover {
    background-color: #36b015;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

.search-container button:active {
    background-color: #2c9912;
    transform: scale(0.98);
}

.xp-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.xp-stat p {
    margin: 5px 0;
}

.xp-button {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    cursor: pointer;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 0 5px var(--accent-color);
    transition: box-shadow 0.3s, transform 0.1s;
}

.xp-button:hover {
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.xp-button:active {
    transform: scale(0.98);
}

#xp-log {
    list-style-type: none;
    padding: 0;
}

#xp-log li {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 10px;
    margin-bottom: 5px;
}

/* New CSS for the Agent ID input */
.input-group {
    display: flex;
    width: 100%;
    max-width: 400px;
    margin: 20px 0;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.input-group input {
    flex-grow: 1;
    background-color: #0c0c0c;
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-family: 'Cutive Mono', monospace;
    outline: none;
}

.input-group input:focus {
    box-shadow: inset 0 0 5px var(--accent-color);
}

.set-id-button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-family: 'Cutive Mono', monospace;
}

.set-id-button:hover {
    background-color: #36b015;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

.set-id-button:active {
    background-color: #2c9912;
    transform: scale(0.98);
}

.xp-progress-bar {
    width: 100%;
    height: 15px;
    background-color: #1a1a1a;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    margin: 10px 0;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
}

.xp-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
}

/* Review Section Styles */
.review-section {
    width: 100%;
    margin-top: 40px;
}

.review-list {
    list-style: none;
    padding: 0;
}

.review-list-item {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.review-list-item:hover {
    background-color: #222;
}

.review-actions button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-left: 10px;
    font-family: 'Cutive Mono', monospace;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.review-actions button:hover {
    background-color: #36b015;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.8);
}

/* Responsive Design */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1rem;
    }

    .header h2 {
        font-size: 0.7rem;
    }
    
    .folder-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab {
        margin: 5px;
        padding: 8px 16px;
    }

    .file-entry {
        flex-direction: column;
        align-items: flex-start;
    }
    .file-title-list, .file-date {
        margin: 5px 0 0;
    }
    .file-number {
        margin-bottom: 5px;
    }
    .file-content, .report-style {
        padding: 15px;
    }
    .file-title {
        font-size: 1.5rem;
    }
    .classified-stamp {
        font-size: 1.5rem;
        top: 10px;
        right: 10px;
    }
    .input-group, .search-container {
        flex-direction: column;
    }
    .input-group input, .search-container input {
        border-radius: 4px;
        border-right: 1px solid var(--text-color);
        margin-bottom: 10px;
    }
    .input-group button, .search-container button {
        border-radius: 4px;
        border: 1px solid var(--accent-color);
        width: 100%;
    }
}
