body {
    background-color: rgb(0, 0, 0);
    color: rgb(145, 8, 230);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: SixtyFour;
    font-size: 16px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    animation: scanline 8s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.3) 0px,
            rgba(0, 0, 0, 0.3) 2px,
            transparent 2px,
            transparent 4px);
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

.glow-current-text {

    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px #0ff,
        0 0 70px #0ff,
        0 0 80px #0ff,
        0 0 100px #0ff,
        0 0 150px #0ff;


    color: #fff;


    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow:
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #fff,
            0 0 40px #0ff,
            0 0 70px #0ff,
            0 0 80px #0ff,
            0 0 100px #0ff,
            0 0 150px #0ff;
    }

    to {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #0ff,
            0 0 35px #0ff,
            0 0 40px #0ff,
            0 0 50px #0ff,
            0 0 75px #0ff;
    }
}


.glow-current-text-static {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px #0ff,
        0 0 70px #0ff,
        0 0 80px #0ff;
    color: #fff;
}


.glow-current-text-purple {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #e60073,
        0 0 40px #e60073,
        0 0 70px #e60073,
        0 0 80px #e60073,
        0 0 100px #e60073;
    color: #fff;
}

.glow-current-text-true-purple {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #8a2be2,
        0 0 40px #8a2be2,
        0 0 70px #8a2be2,
        0 0 80px #8a2be2,
        0 0 100px #8a2be2;
    color: #fff;
}

.glow-current-text-red {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #ff0000,
        0 0 40px #ff0000,
        0 0 70px #ff0000,
        0 0 80px #ff0000,
        0 0 100px #ff0000;
    color: #fff;
}

.glow-current-text-dark-red {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #8b0000,
        0 0 40px #8b0000,
        0 0 70px #8b0000,
        0 0 80px #8b0000,
        0 0 100px #8b0000;
    color: #981717;
}

.glow-current-text-green {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #00ff00,
        0 0 40px #00ff00,
        0 0 70px #00ff00,
        0 0 80px #00ff00,
        0 0 100px #00ff00;
    color: #fff;
}


@font-face {
    font-family: SixtyFour;
    src: url('assets/fonts/SixtyFour.ttf');
}

.terminal-header {
    background: #16182a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.terminal-title {
    color: #8b8b8b;
    font-size: 12px;
    margin-left: 10px;
}



.terminal-output {
    color: #00ff00;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-error {
    color: #ff6b6b;
}

.terminal-info {
    color: #64b5f6;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    color: #fff;

    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px rgb(255, 255, 255),
        0 0 70px rgb(255, 255, 255),
        0 0 80px #0ff;
    color: #fff;

    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.terminal-prompt {
    color: #8a2be2;
    margin-right: 8px;
    user-select: none;
}

#terminalInput {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'SixtyFour';
    font-size: 14px;
    outline: none;
    flex: 1;
    caret-color: #ffffff;
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #fff,
        0 0 40px #0ff,
        0 0 70px #0ff,
        0 0 80px #0ff,
        0 0 100px #0ff,
        0 0 150px #0ff;


    color: #fff;


    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.terminal-body::-webkit-scrollbar {
    width: 8px;
}

.terminal-body::-webkit-scrollbar-track {
    background: #16182a;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: #8a2be2;
    border-radius: 4px;
}

.glow-text {
    color: #8a2be2;
    text-shadow: 0 0 10px #8a2be2;



    .explorer-container {
        width: 90%;
        max-width: 1200px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #8a2be2;
        border-radius: 8px;
        overflow: hidden;
        box-shadow:
            0 0 20px #8a2be2,
            0 0 40px #8a2be2,
            inset 0 0 20px rgba(138, 43, 226, 0.1);
    }

    .explorer-header {
        background: rgba(138, 43, 226, 0.2);
        padding: 15px;
        border-bottom: 2px solid #8a2be2;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .explorer-nav {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .nav-btn {
        background: transparent;
        border: 2px solid #8a2be2;
        color: #fff;
        padding: 8px 15px;
        font-family: 'SixtyFour', monospace;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;

        text-shadow:
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #fff,
            0 0 40px #0ff,
            0 0 70px #0ff,
            0 0 80px #0ff,
            0 0 100px #0ff,
            0 0 150px #0ff;


        color: #fff;


        animation: glow-pulse 2s ease-in-out infinite alternate;
    }

    .nav-btn:hover:not(:disabled) {
        background: rgba(138, 43, 226, 0.3);
        box-shadow: 0 0 15px #8a2be2;
    }

    .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .breadcrumb {
        font-size: 16px;
        padding: 5px 10px;
        background: rgba(0, 255, 0, 0.1);
        border: 1px solid #00ff00;
        border-radius: 4px;
    }

    .explorer-body {
        min-height: 400px;
        max-height: 600px;
        overflow-y: auto;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
    }

    .explorer-body::-webkit-scrollbar {
        width: 10px;
    }

    .explorer-body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.5);
    }

    .explorer-body::-webkit-scrollbar-thumb {
        background: #8a2be2;
        border-radius: 5px;
    }

    .explorer-body::-webkit-scrollbar-thumb:hover {
        background: #a855f7;
    }

    .file-item {
        display: grid;
        grid-template-columns: 40px 1fr 100px 120px;
        gap: 15px;
        padding: 12px;
        margin: 8px 0;
        background: rgba(138, 43, 226, 0.1);
        border: 1px solid rgba(138, 43, 226, 0.3);
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.3s;
        align-items: center;
    }

    .file-item:hover {
        background: rgba(138, 43, 226, 0.3);
        border-color: #8a2be2;
        box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
        transform: translateX(5px);
    }

    .folder-item {
        border-color: rgba(138, 43, 226, 0.5);
    }

    .folder-item:hover {
        border-color: #8a2be2;
    }

    .file-icon {
        font-size: 24px;
        text-align: center;
    }

    .file-name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .file-size,
    .file-modified,
    .file-type {
        font-size: 12px;
        text-align: right;
    }

    .explorer-footer {
        background: rgba(138, 43, 226, 0.2);
        padding: 10px 15px;
        border-top: 2px solid #8a2be2;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
    }

    .file-preview {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        max-width: 800px;
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid #8a2be2;
        border-radius: 8px;
        z-index: 1000;
        box-shadow:
            0 0 30px #8a2be2,
            0 0 60px #8a2be2,
            inset 0 0 30px rgba(138, 43, 226, 0.1);
        animation: fadeIn 0.3s;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .preview-header {
        background: rgba(138, 43, 226, 0.3);
        padding: 15px;
        border-bottom: 2px solid #8a2be2;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .close-btn {
        background: transparent;
        border: 2px solid #ff0000;
        color: #fff;
        padding: 5px 15px;
        font-family: 'SixtyFour', monospace;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;
    }

    .close-btn:hover {
        background: rgba(255, 0, 0, 0.3);
        box-shadow: 0 0 15px #ff0000;
    }

    .preview-body {
        padding: 20px;
        max-height: 500px;
        overflow-y: auto;
    }

    .preview-body::-webkit-scrollbar {
        width: 8px;
    }

    .preview-body::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.5);
    }

    .preview-body::-webkit-scrollbar-thumb {
        background: #8a2be2;
        border-radius: 4px;
    }

    .file-link {
        display: block;
        margin: 10px 0;
        padding: 10px;
        background: rgba(138, 43, 226, 0.2);
        border: 1px solid #8a2be2;
        border-radius: 4px;
        text-decoration: none;
        word-break: break-all;
        transition: all 0.3s;
    }

    .file-link:hover {
        background: rgba(138, 43, 226, 0.4);
        box-shadow: 0 0 10px #8a2be2;
    }

    .image-preview-container {
        margin-top: 20px;
        text-align: center;
    }

    .image-preview-container img {
        max-width: 100%;
        max-height: 400px;
        border: 2px solid #8a2be2;
        border-radius: 4px;
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    }

    .loading {
        text-align: center;
        padding: 40px;
        font-size: 18px;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }


    @media (max-width: 768px) {
        .file-item {
            grid-template-columns: 30px 1fr;
            gap: 10px;
        }

        .file-size,
        .file-modified {
            display: none;
        }

        .file-preview {
            width: 95%;
        }
    }

/* Styles pour le client email - À ajouter au fichier style.css existant */

.email-container {
    width: 95%;
    max-width: 1600px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #8a2be2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 20px #8a2be2,
        0 0 40px #8a2be2,
        inset 0 0 20px rgba(138, 43, 226, 0.1);
}

.email-header {
    background: rgba(138, 43, 226, 0.2);
    padding: 20px 30px;
    border-bottom: 2px solid #8a2be2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-stats {
    display: flex;
    gap: 30px;
    font-size: 14px;
}

.email-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    min-height: 700px;
    gap: 0;
}

/* Liste des emails - CÔTÉ GAUCHE */
.email-list {
    background: rgba(0, 0, 0, 0.5);
    border-right: 2px solid #8a2be2;
    overflow-y: auto;
    padding: 25px;
}

.email-list::-webkit-scrollbar {
    width: 10px;
}

.email-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.email-list::-webkit-scrollbar-thumb {
    background: #8a2be2;
    border-radius: 4px;
}

.email-item {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.email-item.unread {
    border-left: 5px solid #00ff00;
    background: rgba(0, 255, 0, 0.08);
    padding-left: 18px;
}

.email-item.selected {
    background: rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: scale(1.02);
}

.email-item:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.email-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.priority-badge {
    font-size: 18px;
    min-width: 25px;
}

.priority-badge.priority-high {
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
}

.priority-badge.priority-low {
    color: #888;
}

.priority-badge.priority-normal {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.email-from {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-date {
    font-size: 11px;
}

.email-subject {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-preview {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 10px;
}

.attachment-indicator {
    font-size: 11px;
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(255, 0, 0, 0.15);
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Lecteur d'email - CÔTÉ DROIT */
.email-reader {
    background: rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 40px;
}

.email-reader::-webkit-scrollbar {
    width: 10px;
}

.email-reader::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.email-reader::-webkit-scrollbar-thumb {
    background: #8a2be2;
    border-radius: 4px;
}

.no-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 20px;
    opacity: 0.5;
}

.email-content {
    animation: fadeIn 0.4s;
    max-width: 900px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-content-header {
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.priority-indicator {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.priority-indicator.priority-high {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
}

.priority-indicator.priority-normal {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
    text-shadow: 0 0 15px #00ff00;
}

.priority-indicator.priority-low {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    color: #8a2be2;
    text-shadow: 0 0 15px #8a2be2;
}

.email-meta {
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
}

.meta-label {
    min-width: 70px;
    font-weight: bold;
}

.meta-value {
    flex: 1;
}

.email-subject-full {
    font-size: 20px;
    font-weight: bold;
    padding-top: 15px;
    border-top: 2px solid rgba(138, 43, 226, 0.3);
    line-height: 1.4;
}

.email-body {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    padding: 30px;
    line-height: 2;
    font-size: 14px;
    margin-bottom: 30px;
    white-space: pre-wrap;
}

/* Pièces jointes */
.attachments-section {
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.attachments-header {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.attachment-item:hover {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.attachment-icon {
    font-size: 28px;
}

.attachment-details {
    flex: 1;
}

.attachment-name {
    font-size: 14px;
    margin-bottom: 6px;
}

.attachment-size {
    font-size: 12px;
}

.download-btn {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    color: #fff;
    padding: 10px 20px;
    font-family: 'SixtyFour', monospace;
    font-size: 11px;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow:
        0 0 10px #fff,
        0 0 20px #8a2be2;
    box-shadow: 
        0 0 10px #8a2be2,
        inset 0 0 10px rgba(138, 43, 226, 0.3);
}

.download-btn:hover {
    background: rgba(138, 43, 226, 0.5);
    box-shadow: 
        0 0 20px #8a2be2,
        0 0 40px #8a2be2,
        inset 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0px);
    box-shadow: 
        0 0 10px #8a2be2,
        inset 0 0 20px rgba(138, 43, 226, 0.7);
}

/* Actions */
.email-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.action-btn {
    background: rgba(138, 43, 226, 0.2);
    border: 2px solid #8a2be2;
    color: #fff;
    padding: 12px 20px;
    font-family: 'SixtyFour', monospace;
    font-size: 11px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    text-shadow:
        0 0 10px #fff,
        0 0 20px #8a2be2;
    box-shadow: 
        0 0 10px #8a2be2,
        inset 0 0 10px rgba(138, 43, 226, 0.3);
}

.action-btn:hover {
    background: rgba(138, 43, 226, 0.5);
    box-shadow: 
        0 0 20px #8a2be2,
        inset 0 0 15px rgba(138, 43, 226, 0.5);
    transform: translateY(-2px);
}

.delete-btn {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 
        0 0 10px #ff0000,
        inset 0 0 10px rgba(255, 0, 0, 0.3);
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 
        0 0 20px #ff0000,
        inset 0 0 15px rgba(255, 0, 0, 0.5);
}

.mark-unread-btn {
    text-shadow:
        0 0 10px #fff,
        0 0 20px #e60073;
}

/* Footer */
.email-footer {
    background: rgba(138, 43, 226, 0.2);
    padding: 15px 30px;
    border-top: 2px solid #8a2be2;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .email-layout {
        grid-template-columns: 1fr;
    }
    
    .email-list {
        border-right: none;
        border-bottom: 2px solid #8a2be2;
        max-height: 400px;
    }
    
    .email-reader {
        padding: 30px;
    }
}
}