﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Steel Shadow Theme: Muted steel gray with soft blue accents and Roboto font, no glow on API headers */

/* Enforce Roboto font globally with high specificity */
*,
*:before,
*:after {
    font-family: 'Roboto', sans-serif !important;
}

body {
    background-color: #2b2d42;
    color: #d9d9d9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    width: 90vw;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2b2d42, #1c2526);
    padding: 15px 20px;
    color: #d9d9d9;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid #4a90e2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

    .menu-bar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="rgba(255,255,255,0.05)" d="M0 0h20v20H0z"/><path fill="none" stroke="rgba(255,255,255,0.1)" d="M0 0l20 20M20 0L0 20"/></svg>') repeat;
        opacity: 0.2;
    }

.menu-logo {
    display: flex;
    align-items: center;
}

.title-container {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.fancy-title {
    font-size: 20px;
    color: #4a90e2;
    text-shadow: 0 0 3px #4a90e2;
    margin: 0;
    line-height: 1.2;
}

.sparkle-m, .word-mail {
    animation: sparkle 8s ease-in-out 0s infinite;
}

.sparkle-i, .word-inspection {
    animation: sparkle 8s ease-in-out 0.2s infinite;
}

.sparkle-t, .word-threat {
    animation: sparkle 8s ease-in-out 0.4s infinite;
}

.sparkle-r, .word-reporting {
    animation: sparkle 8s ease-in-out 0.6s infinite;
}

.sparkle-e, .word-extraction {
    animation: sparkle 8s ease-in-out 0.8s infinite;
}

.sparkle-m, .sparkle-i, .sparkle-t, .sparkle-r, .sparkle-e,
.word-mail, .word-inspection, .word-threat, .word-reporting, .word-extraction {
    display: inline-block;
}

.tagline {
    font-size: 13px;
    color: #d9d9d9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeIn 2s ease-out;
    margin: 5px 0 0 0;
}

.welcome-section {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(145deg, #2b2d42, #1c2526);
    border-radius: 10px;
    border: 2px solid #4a90e2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

    .welcome-section h1 {
        font-size: 30px;
        color: #4a90e2;
        text-shadow: 0 0 3px #4a90e2;
        margin: 0 0 10px;
    }

    .welcome-section h2 {
        font-size: 22px;
        color: #d9d9d9;
        margin: 0 0 15px;
    }

    .welcome-section p {
        font-size: 15px;
        color: #d9d9d9;
        margin: 0 0 20px;
        line-height: 1.6;
    }

    .welcome-section a {
        color: #4a90e2;
        text-decoration: underline;
    }

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

    .stat-item h3 {
        font-size: 26px;
        color: #4a90e2;
        margin: 0;
    }

    .stat-item p {
        font-size: 13px;
        color: #d9d9d9;
        margin: 5px 0 0;
    }

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.register-button, .login-button, .microsoft-button {
    display: inline-block !important;
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #ffffff !important; /* Ensure text is always white */
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #4a90e2;
    text-align: center;
    cursor: pointer;
    visibility: visible !important;
}

    .register-button:hover, .login-button:hover, .microsoft-button:hover {
        background-color: #1c2526;
        color: #4a90e2 !important;
        transform: scale(1.05);
    }

.microsoft-button {
    background-color: #0078D4 !important; /* Microsoft blue */
    color: #ffffff !important;
    display: inline-block !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #4a90e2;
    padding: 10px 20px;
    visibility: visible !important;
}

#microsoft-login-button {
    background-color: #0078D4 !important;
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
}

.microsoft-button::before {
    content: '\f3b1'; /* Font Awesome Microsoft icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
}

.drop-area {
    border: 2px dashed #4a90e2;
    padding: 20px;
    text-align: center;
    background-color: #2b2d42;
    border-radius: 5px;
    margin: 20px 0;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

    .drop-area:hover {
        background-color: #3a3e5a;
        border-color: #d9d9d9;
    }

    .drop-area.dragover {
        border-color: #d9d9d9;
        background-color: #4a506e;
        border-width: 3px;
    }

.drop-label {
    display: block;
    font-size: 15px;
    color: #d9d9d9;
    margin-bottom: 10px;
    cursor: pointer;
}

.drop-area input[type="file"] {
    display: none;
}

.selected-files {
    margin-top: 10px;
    font-size: 13px;
    color: #d9d9d9;
    text-align: left;
    min-height: 20px;
}

    .selected-files ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .selected-files li {
        padding: 5px 0;
        word-break: break-all;
    }

.button-container {
    text-align: center;
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: #1c2526;
        color: #4a90e2;
    }

.layout {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 3;
    min-width: 600px;
}

.side-panel {
    flex: 1;
    background-color: #2b2d42;
    padding: 20px;
    border-radius: 5px;
    min-width: 300px;
}

@media (min-width: 1600px) {
    .main-content {
        flex: 4;
    }

    .side-panel {
        flex: 1.5;
        min-width: 400px;
    }

    .key-value-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .key-value span {
        font-size: 16px;
    }

    .api-call-section h4 {
        font-size: 28px;
    }
}

/* Scan Results Styling */
.result-section {
    background-color: #2b2d42;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.trust-indicator-section {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: linear-gradient(145deg, #2b2d42, #1c2526);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .trust-indicator-section:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

.trust-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

    .trust-indicator i {
        font-size: 24px;
    }

.trust {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.cautious {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffca2c;
    font-size: 26px;
    box-shadow: 0 0 6px rgba(255, 202, 44, 0.3);
}

.dont-trust {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.trust-explanation {
    margin-top: 12px;
    font-size: 14px;
    color: #d9d9d9;
    font-style: italic;
}

.auth-indicators {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.auth-indicator {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

    .auth-indicator:hover {
        transform: scale(1.03);
    }

    .auth-indicator.valid {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #28a745;
    }

    .auth-indicator.invalid {
        background-color: #f8d7da;
        color: #721c24;
        font-size: 15px;
        font-weight: bold;
        border: 1px solid #dc3545;
        box-shadow: 0 0 6px rgba(220, 53, 69, 0.2);
    }

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.valid .status-dot {
    background-color: #28a745;
}

.invalid .status-dot {
    background-color: #dc3545;
}

.status-low {
    color: #28a745;
}

.status-medium {
    color: #ffca2c;
}

.status-malicious {
    color: #dc3545;
}

.status-valid {
    color: #155724;
}

.status-invalid {
    color: #721c24;
}

.api-results-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-call-section {
    background: linear-gradient(145deg, #2b2d42, #1c2526);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #4a90e2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .api-call-section:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .api-call-section h4 {
        margin-top: 0;
        color: #4a90e2;
        font-size: 18px;
        border-bottom: 2px solid #4a90e2;
        padding-bottom: 6px;
        position: relative;
        display: inline-block;
    }

        .api-call-section h4::after {
            content: '\f0c1';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 14px;
            color: #4a90e2;
            margin-left: 6px;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }

    .api-call-section.auth-section {
        background: linear-gradient(145deg, #2b2d42, #1c2526);
    }

.key-value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.key-value {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px;
    background: linear-gradient(90deg, #2b2d42, #1c2526);
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .key-value:hover {
        background: linear-gradient(90deg, #4a506e, #3a3e5a);
        transform: translateX(3px);
    }

    .key-value strong {
        flex: 1;
        color: #d9d9d9;
        font-weight: 500;
        position: relative;
        padding-left: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 100px;
    }

        .key-value strong::before {
            content: '\f05a';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 12px;
            color: #4a90e2;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }

    .key-value span {
        flex: 2;
        color: #d9d9d9;
        font-size: 13px;
        word-break: break-all;
        overflow-wrap: break-word;
        overflow: hidden;
        max-width: 100%;
    }

.header-entry {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.header-entry-header {
    font-weight: bold;
    border-bottom: 1px solid #d9d9d9;
}

.header-key {
    flex: 1;
    font-weight: bold;
    color: #d9d9d9;
}

.header-value {
    flex: 2;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    color: #d9d9d9;
}

.api-details-section {
    margin-top: 10px;
}

.api-details-content {
    display: none;
    background-color: #3a3e5a;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
    color: #d9d9d9;
}

    .api-details-content.visible {
        display: block;
    }

.links-content, .attachments-content {
    margin-top: 10px;
}

.attachments-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toggle-screenshot {
    margin-left: 10px;
    color: #4a90e2;
    cursor: pointer;
}

.toggle-url {
    margin-left: 10px;
    color: #4a90e2;
    cursor: pointer;
}

.full-url {
    word-break: break-all;
}

.powershell-code {
    background-color: #2b2d42;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
}

    .powershell-code code {
        display: block;
        font-size: 13px;
        white-space: pre-wrap;
        word-break: break-all;
        color: #d9d9d9;
    }

.side-panel .result-section .headers-content,
.side-panel .result-section .raw-data-content,
.side-panel .result-section .powershell-content {
    display: none;
    margin-top: 10px;
}

    .side-panel .result-section .headers-content.visible,
    .side-panel .result-section .raw-data-content.visible,
    .side-panel .result-section .powershell-content.visible {
        display: block;
    }

.side-panel .powershell-content {
    width: 100%;
    box-sizing: border-box;
}

.side-panel .powershell-command {
    margin-bottom: 15px;
}

.ip-table {
    margin-top: 10px;
}

.ip-table-header, .ip-table-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.ip-table-header {
    font-weight: bold;
    border-bottom: 1px solid #d9d9d9;
}

.ip-address {
    flex: 2;
}

.ip-action {
    flex: 1;
    text-align: right;
}

.value-with-copy {
    display: inline-flex;
    align-items: center;
}

.copy-icon {
    margin-left: 10px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #4a90e2;
    transition: color 0.3s ease;
}

    .copy-icon:hover {
        color: #d9d9d9;
    }

    .copy-icon.copied {
        color: #28a745;
    }

.copy-button {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .copy-button:hover {
        background-color: #1c2526;
        color: #4a90e2;
    }

    .copy-button.copied {
        background-color: #28a745;
    }

    .copy-button:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

.expandable-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #3a3e5a;
    border-radius: 5px;
    color: #d9d9d9;
}

    .expandable-content.visible {
        display: block;
    }

.screenshot-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

    .screenshot-button:hover {
        background-color: #1c2526;
        color: #4a90e2;
    }

    .screenshot-button:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

.url-reputation-subsection {
    background: linear-gradient(145deg, #2b2d42, #1c2526);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #4a90e2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.error {
    color: #f8d7da;
    text-align: center;
}

.long-text {
    word-break: break-all;
    color: #d9d9d9;
}

.hidden {
    display: none;
}

.show-all-button {
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

    .show-all-button:hover {
        background-color: #1c2526;
        color: #4a90e2;
    }

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #2b2d42;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #4a90e2;
    width: 80%;
    max-width: 700px;
    border-radius: 5px;
}

.modal-close {
    color: #d9d9d9;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

    .modal-close:hover,
    .modal-close:focus {
        color: #4a90e2;
        text-decoration: none;
        cursor: pointer;
    }

#zoomImage {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #zoomImage:hover {
        background-color: #1c2526;
        color: #4a90e2;
    }

#screenshotImage {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    #screenshotImage.zoomed {
        transform: scale(1.5);
    }

#screenshotError {
    color: #f8d7da;
    margin-top: 10px;
}

.captcha-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.captcha-modal-content {
    background-color: #2b2d42;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #4a90e2;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
    text-align: center;
}

    .captcha-modal-content h3 {
        margin-top: 0;
        color: #d9d9d9;
    }

    .captcha-modal-content .g-recaptcha {
        margin: 15px 0;
    }

    .captcha-modal-content button {
        padding: 10px 20px;
        background-color: #4a90e2;
        color: #ffffff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

        .captcha-modal-content button:hover {
            background-color: #1c2526;
            color: #4a90e2;
        }

.toast {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c2526;
    color: #d9d9d9;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #4a90e2;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .toast.visible {
        opacity: 1;
    }

    .toast a {
        color: #4a90e2;
        text-decoration: underline;
        cursor: pointer;
    }

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #3a3e5a;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #4a90e2;
    width: 0;
    transition: width linear;
}

/* Animations */
@keyframes sparkle {
    0% {
        opacity: 0.9;
        text-shadow: 0 0 0 #4a90e2;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 1px #4a90e2;
    }

    100% {
        opacity: 0.9;
        text-shadow: 0 0 0 #4a90e2;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styling for login and register sections */
.login-section, .register-section {
    text-align: center;
    margin: 20px 0;
    padding: 30px;
    background: linear-gradient(145deg, #2b2d42, #1c2526);
    border-radius: 10px;
    border: 2px solid #4a90e2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

    .login-section h1, .register-section h1 {
        font-size: 30px;
        color: #4a90e2;
        text-shadow: 0 0 3px #4a90e2;
        margin: 0 0 10px;
    }

    .login-section p, .register-section p {
        font-size: 15px;
        color: #d9d9d9;
        margin: 0 0 20px;
        line-height: 1.6;
    }

    .login-section a, .register-section a {
        color: #4a90e2;
        text-decoration: underline;
    }
