:root {
    --primary: var(--accent); /* Red Accent */
    --primary-dark: #cc0000;
    --secondary: var(--cyan); /* Cyan */
    --dark: var(--bg2);
    --darker: var(--bg);
    --light: var(--white);
    --danger: var(--accent);
    --warning: #febc2e;
    --success: var(--green);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000000 !important; /* Pure black with higher specificity */
    color: var(--light);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 45, 45, 0.2); /* Updated to neon green */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.tips-container {
    margin-top: 10px;
    min-height: 24px; /* Reserve space for tips */
}

.tips-text {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.tips-text.active {
    opacity: 1;
}

.upload-section {
    background-color: var(--darker);
    border: 2px dashed var(--primary);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.drop-area {
    padding: 30px;
}

.drop-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.drop-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.drop-area p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.7);
}

#browseBtn {
    background-color: var(--primary);
    color: var(--darker);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#browseBtn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.file-info {
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 45, 45, 0.1); /* Updated to neon green */
    border-radius: 5px;
    border-left: 3px solid var(--primary);
}

.results-section {
    background-color: var(--darker);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.results-section.visible {
    opacity: 1;
}

.tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 45, 45, 0.2); /* Updated to neon green */
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.tab-btn.active {
    color: var(--primary);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
}

/* Email Preview Styles */
#emailPreview {
    background-color: var(--light);
    color: var(--dark);
    padding: 15px;
    border-radius: 5px;
}

/* Base64 Data Styles with Scroll */
#base64Data {
    max-height: 400px;
    overflow-y: auto;
}

/* Basic Info List Styles */
.basic-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.basic-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.basic-info-label {
    color: var(--light);
    width: 100px;
    font-weight: 500;
}

.basic-info-value {
    color: var(--secondary);
    flex: 1;
}

.basic-info-buttons {
    display: flex;
    gap: 5px;
}

.basic-copy-btn {
    background-color: rgba(255, 45, 45, 0.1); /* Updated to neon green */
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.basic-copy-btn:hover {
    background-color: rgba(255, 45, 45, 0.2); /* Updated to neon green */
    transform: scale(1.05);
}

.basic-copy-btn i {
    margin-right: 5px;
}

/* Styles for the URLs list with buttons */
#extractedUrls {
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.url-item {
    margin-bottom: 20px;
}

.url-item:last-child {
    margin-bottom: 0;
}

.url-link {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-all;
}

/* Styles for the attachments list with buttons */
#attachmentsList {
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.attachment-item {
    margin-bottom: 20px;
}

.attachment-item:last-child {
    margin-bottom: 0;
}

.attachment-filename {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.hash-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.hash-label {
    color: var(--light);
    width: 70px;
}

.hash-value {
    color: var(--secondary);
    flex: 1;
    word-break: break-all;
}

.hash-buttons {
    display: flex;
    gap: 5px;
}

.copy-btn, #decodeBase64Btn {
    background-color: rgba(255, 45, 45, 0.1); /* Updated to neon green */
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.copy-btn:hover, #decodeBase64Btn:hover {
    background-color: rgba(255, 45, 45, 0.2); /* Updated to neon green */
    transform: scale(1.05);
}

.copy-btn i, #decodeBase64Btn i {
    margin-right: 5px;
}

.vt-result {
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.vt-result.success {
    color: var(--success);
    background-color: rgba(0, 170, 85, 0.1);
}

.vt-result.warning {
    color: var(--warning);
    background-color: rgba(255, 170, 0, 0.1);
}

.vt-result.danger {
    color: var(--danger);
    background-color: rgba(255, 85, 85, 0.1);
}

.vt-result.loading {
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.1);
}

.vt-result a {
    color: var(--primary);
    text-decoration: none;
}

.vt-result a:hover {
    text-decoration: underline;
}

.header-section, .url-section, .attachment-section, .email-preview-section, .report-section, .base64-section, .basic-section {
    margin-bottom: 20px;
}

.header-section h3, .url-section h3, .attachment-section h3, .email-preview-section h3, .report-section h3, .base64-section h3, .basic-section h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.header-section table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 10px;
}

.header-section th, .header-section td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 45, 45, 0.2); /* Updated to neon green */
    word-break: break-all;
    overflow-wrap: break-word;
}

.header-section th:first-child,
.header-section td:first-child {
    width: 30%;
}

.header-section th:last-child,
.header-section td:last-child {
    width: 70%;
}

.header-section th {
    background-color: rgba(255, 45, 45, 0.1); /* Updated to neon green */
    color: var(--primary);
}

.header-section td {
    color: var(--light);
}

#fullHeaders {
    width: 100%;
    overflow-x: auto;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.actions button {
    background-color: rgba(255, 45, 45, 0.1); /* Updated to neon green */
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions button:hover {
    background-color: rgba(255, 45, 45, 0.2); /* Updated to neon green */
    transform: scale(1.05);
}

.actions button i {
    font-size: 0.9rem;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 45, 45, 0.2); /* Updated to neon green */
    position: relative;
    z-index: 1;
}

.contact-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.contact-links p {
    color: var(--primary);
    font-weight: 500;
}

.contact-links a {
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.contact-links i {
    font-size: 1rem;
}

/* Drag and drop styles */
.drop-area.highlight {
    border-color: var(--primary);
    background-color: rgba(255, 45, 45, 0.05); /* Updated to neon green */
}

/* Snowfall effect */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0.5;
    }
}

/* Back button styles */
.back-btn {
    background-color: rgba(255, 45, 45, 0.1); /* Neon green background */
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: rgba(255, 45, 45, 0.2); /* Slightly darker on hover */
    transform: scale(1.05);
}

.back-btn i {
    font-size: 0.9rem;
}

/* Analyze button styles */
#analyzeBtn {
    background-color: var(--primary);
    color: var(--darker);
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#analyzeBtn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .actions {
        flex-direction: column;
    }

    .hash-entry, .basic-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hash-buttons, .basic-info-buttons {
        margin-top: 5px;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
