:root {
    --deptColor: #555;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0e0e0e;
    color: #e6e6e6;
    display: flex;
}

.layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1a1a1a;
    border-right: 2px solid var(--deptColor);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-section img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px var(--deptColor));
}

.logo-section h2 {
    margin-top: 10px;
    color: var(--deptColor);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.folders h3 {
    margin: 15px 0 8px;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.folders ul {
    list-style: none;
    padding: 0;
}

.folders li {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.folders li:hover {
    background: var(--deptColor);
    color: #fff;
}

/* Content */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

#viewHeader {
    border-bottom: 2px solid var(--deptColor);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 0 0 6px var(--deptColor);
}

.email-card {
    background: #1b1b1b;
    border-left: 4px solid var(--deptColor);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.email-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--deptColor);
}
.email-meta {
    font-size: 0.8rem; color: #999; margin: 8px 0; border-bottom: 1px solid #333;
}
.email-body { white-space: pre-line; }

.import-btn {
    position: fixed;
    bottom: 20px;
    right: 25px;
    background: var(--deptColor);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 0 10px var(--deptColor);
}
.import-btn:hover { opacity: 0.8; }

.import-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.import-modal.hidden { display: none; }

.import-box {
    background: #1b1b1b;
    border: 2px solid var(--deptColor);
    padding: 25px;
    width: 600px;
    max-width: 95%;
    border-radius: 8px;
}

#importInput {
    width: 100%;
    height: 250px;
    background: #0f0f0f;
    border: 1px solid #444;
    color: #eee;
    padding: 10px;
    border-radius: 6px;
    white-space: pre-line;
}

.import-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.import-actions button {
    background: var(--deptColor);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}
