/* Base styles - Variables, reset, layout principal */

/* Variables CSS pour une maintenance plus facile */
:root {
    --primary-color: #1d4a7a;
    --secondary-color: #2563eb;
    --accent-color: #1d72b8;
    --surface-bg: #ffffff;
    --surface-alt: #f5f7fa;
    --panel-border: #d9e1e8;
    --text-primary: #1f2d3a;
    --text-secondary: #445666;
    --text-muted: #6b7c89;
    --border-color: #c5d1db;
    --success-color: #188b46;
    --error-color: #d03030;
    --warning-color: #d98a08;
    --theme-pastel-orange: #e8d7c2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f2f5f8;
    min-height: 100vh;
    color: var(--text-primary);
    padding: 20px;
    padding-top: 80px; /* Espace pour la barre d'auth */
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 40px);
}

.left-panel {
    background: var(--surface-bg);
    border-radius: 12px;
    padding: 26px 28px;
    border: 1px solid var(--panel-border);
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.right-panel {
    background: var(--surface-bg);
    border-radius: 12px;
    padding: 26px 28px;
    border: 1px solid var(--panel-border);
    overflow-y: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 28px;
    font-size: 2.2rem;
    grid-column: 1 / -1;
    font-weight: 600;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 18px;
    font-size: 1.25rem;
    font-weight: 550;
}

.section {
    margin-bottom: 30px;
}

.theme-row {
    background: var(--theme-pastel-orange) !important;
    color: #7a4a00;
    border-radius: 8px;
    font-weight: bold;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e1e6eb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #b4c2d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a6b5;
}

/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    top: 80px; /* Sous la barre d'authentification */
    right: 20px;
    z-index: 1050; /* Au-dessus de la plupart des éléments */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s 2.5s forwards;
    max-width: 350px;
    word-wrap: break-word;
}

.toast.info {
    background-color: rgba(59, 130, 246, 0.7); /* blue-500 */
}

.toast.success {
    background-color: rgba(34, 197, 94, 0.7); /* green-500 */
}

.toast.error {
    background-color: rgba(239, 68, 68, 0.7); /* red-500 */
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
