body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #121212;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 6px;
    border: 3px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

#upload-section {
    text-align: center;
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;
    background: #1e1e1e;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

#drop-zone {
    border: 2px dashed #555;
    padding: 40px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 12px;
    transition: border-color 0.3s, background 0.3s;
    background: #191919;
}

#drop-zone.dragging {
    background: #222;
    border-color: #888;
}

#file-upload {
    display: none;
}

#scan-evaluation {
    margin-top: 20px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    margin: 10px auto 0;
    width: fit-content;
}

.alert.warning {
    background: #4e3a00;
    color: #ffcc00;
}

.alert.safe {
    background: #003a1f;
    color: #00ff88;
}

#result {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    padding: 0 20px;
}


#file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#file-list li {
    background: #1e1e1e;
    margin-bottom: 10px;
    padding: 12px;
    border-left: 4px solid #444;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

#file-list li:hover {
    background: #2a2a2a;
}

#file-list code {
    display: block;
    background-color: #1a1a1a !important;
    color: #f1f1f1 !important;
    padding: 10px;
    margin-top: 6px;
    font-family: Consolas, monospace;
    font-size: 0.95em;
    border-radius: 8px;

    word-break: break-word;
    overflow-wrap: break-word;

    box-shadow: none;
    border: none;
}

#editor-modal {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: #1e1e1e;
    color: white;
    border: 2px solid #555;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

#editor-header {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #333;
    font-weight: bold;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

#editor-body {
    display: flex;
    height: 100%;
}

#editor-sidebar {
    width: 250px;
    background: #2d2d2d;
    color: white;
    padding: 10px;
    overflow-y: auto;
}

#editor-sidebar ul {
    list-style: none;
    padding-left: 10px;
}

#editor-sidebar li {
    cursor: pointer;
    padding: 4px;
    font-family: monospace;
    border-radius: 6px;
}

#editor-sidebar .folder {
    font-weight: bold;
    color: #eee;
}

#editor-sidebar .file {
    color: #ddd;
}

#editor-sidebar .file:hover {
    background: #444;
}

.hidden {
    display: none !important;
}

#editor-container {
    flex-grow: 1;
    min-height: 400px;
}


#scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

#export-button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 15px;
}

#export-button:hover {
    background: #444;
}

#copy-button {
    margin-top: 10px;
    margin-left: 10px;
    padding: 10px 20px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

#copy-button:hover {
    background: #444;
}

#discord-notice {
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}

.notice-actions {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.notice-link {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.notice-link.primary {
    background: #5865F2;
    color: white;
}

.notice-link.secondary {
    background: rgba(255,255,255,0.08);
    color: #ddd;
}

.notice-subtext {
    font-size: 0.85em;
    opacity: 0.7;
}

