/* Styles pour la page journal */

body {
    margin: 0;
    padding: 80px 20px 20px 20px;
    font-family: 'Inter', sans-serif;
    background-image: url('imagefond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232, 185, 35, 0.3);
}

.header h1 {
    color: #e8b923;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

.journal-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    min-height: 600px;
}

.journal-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #e8b923;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entries-list {
    max-height: 200px;
    overflow-y: auto;
}

.entry-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.entry-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #e8b923;
}

.entry-item.active {
    background: rgba(232, 185, 35, 0.2);
    border-color: #e8b923;
}

.entry-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.entry-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: #e8b923;
    box-shadow: 0 0 10px rgba(232, 185, 35, 0.3);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #e8b923;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.journal-main {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.journal-editor {
    margin-bottom: 30px;
}

.editor-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.date-input,
.title-input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.date-input {
    width: 150px;
}

.title-input {
    flex: 1;
}

.date-input::placeholder,
.title-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.date-input:focus,
.title-input:focus {
    outline: none;
    border-color: #e8b923;
    box-shadow: 0 0 10px rgba(232, 185, 35, 0.3);
}

.editor-content {
    margin-bottom: 20px;
}

.content-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.content-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.content-textarea:focus {
    outline: none;
    border-color: #e8b923;
    box-shadow: 0 0 15px rgba(232, 185, 35, 0.3);
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #e8b923;
    color: #000;
}

.btn-primary:hover {
    background: #f4d03f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.3);
}

.btn-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.btn-warning:hover {
    background: rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.word-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.journal-entries {
    display: none;
}

.entry-display {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.entry-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-display-title {
    color: #e8b923;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.entry-display-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.entry-display-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .journal-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .journal-sidebar {
        order: 2;
    }
    
    .journal-main {
        order: 1;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-input {
        width: 100%;
    }
    
    .editor-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .editor-actions {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .editor-actions .btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* ——— Mode JOUR: fonds blancs agréables et texte noir ——— */
body:not(.night-mode) .container,
body:not(.night-mode) .header,
body:not(.night-mode) .journal-sidebar,
body:not(.night-mode) .journal-main,
body:not(.night-mode) .entry-display,
body:not(.night-mode) .journal-entry,
body:not(.night-mode) .stat-item,
body:not(.night-mode) .entry-item {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: none !important;
}

body:not(.night-mode) .entry-display-title,
body:not(.night-mode) .entry-title,
body:not(.night-mode) .entry-display-content,
body:not(.night-mode) .entry-content {
    color: #1a1a1a !important;
}

body:not(.night-mode) .search-input,
body:not(.night-mode) .date-input,
body:not(.night-mode) .title-input,
body:not(.night-mode) .content-textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Filigrane croix grise dans la zone de texte (jour) */
body:not(.night-mode) .content-textarea {
    /* La croix passe en superposition via .editor-content::after */
    background-image: none !important;
}

/* Superposition de la croix au-dessus du texte (jour) */
body:not(.night-mode) .editor-content {
    position: relative;
}

body:not(.night-mode) .editor-content::after {
    content: '✝';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 220px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1;
}

/* Assurer que la zone de texte reste sous la croix mais cliquable */
.content-textarea {
    position: relative;
    z-index: 0;
}

body:not(.night-mode) .search-input::placeholder,
body:not(.night-mode) .date-input::placeholder,
body:not(.night-mode) .title-input::placeholder,
body:not(.night-mode) .content-textarea::placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
}

/* Conserver les accents dorés souhaités */
body:not(.night-mode) .header h1,
body:not(.night-mode) .sidebar-section h3 {
    color: #e8b923 !important;
}

/* ——— Filigrane: croix grise du Christ (mode jour uniquement) ——— */
/* (supprimé) Filigrane global – la croix est maintenant uniquement dans la textarea */

/* Mode jour avec image de fond */
/* Mode jour - fond simple avec image (déjà défini dans body) */
/* Mode jour - fond transparent glacé léger (déjà défini dans .container) */

/* Mode nuit - identique à l'index */
.night-mode {
    background: #000000 !important;
    background-image: none !important;
    background-attachment: scroll !important;
    color: #e2e8f0 !important;
    position: relative;
}

/* Supprimer l'image de fond en mode nuit */
.night-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: -2;
    pointer-events: none;
}

/* Croix lumineuse en arrière-plan */
.night-mode::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, transparent 40%, rgba(135, 206, 235, 0.1) 50%, transparent 60%),
                linear-gradient(-45deg, transparent 40%, rgba(135, 206, 235, 0.1) 50%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: crossGlow 4s ease-in-out infinite;
}

@keyframes crossGlow {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1); 
    }
}

/* Styles pour les éléments en mode nuit - identique à l'index */
.night-mode .container,
.night-mode .header,
.night-mode .journal-sidebar,
.night-mode .journal-main,
.night-mode .entry-display {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.night-mode .entry-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.night-mode .entry-item:hover {
    background: rgba(135, 206, 235, 0.2) !important;
    border-color: #87CEEB !important;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4) !important;
}

.night-mode .entry-item.active {
    background: rgba(135, 206, 235, 0.3) !important;
    border-color: #87CEEB !important;
}

/* Couleurs spécifiques pour les titres et textes */
.night-mode .header h1,
.night-mode .sidebar-section h3,
.night-mode .entry-display-title {
    color: #f7fafc !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

.night-mode .entry-display-content {
    color: #87CEEB !important;
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.6) !important;
}

.night-mode .entry-title,
.night-mode .entry-display-date {
    color: #cbd5e0 !important;
}

/* Boutons en mode nuit */
.night-mode .btn-primary {
    background: rgba(135, 206, 235, 0.2) !important;
    color: #e2e8f0 !important;
    border: 2px solid rgba(135, 206, 235, 0.4) !important;
}

.night-mode .btn-primary:hover {
    background: rgba(135, 206, 235, 0.3) !important;
    border-color: #87CEEB !important;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4) !important;
}

.night-mode .btn-secondary {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(135, 206, 235, 0.4) !important;
}

.night-mode .btn-warning {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.5) !important;
}

.night-mode .btn-warning:hover {
    background: rgba(255, 193, 7, 0.3) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4) !important;
}

.night-mode .search-input,
.night-mode .date-input,
.night-mode .title-input,
.night-mode .content-textarea {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(135, 206, 235, 0.4) !important;
}

.night-mode .search-input:focus,
.night-mode .date-input:focus,
.night-mode .title-input:focus,
.night-mode .content-textarea:focus {
    border-color: #87CEEB !important;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3) !important;
}

/* Styles pour les nouvelles sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-icon {
    background: rgba(232, 185, 35, 0.2);
    border: 1px solid rgba(232, 185, 35, 0.4);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e8b923;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(232, 185, 35, 0.3);
    transform: scale(1.1);
}

.folders-list, .categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-item, .category-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.9rem;
}

.folder-item:hover, .category-item:hover {
    background: rgba(232, 185, 35, 0.1);
    border-color: rgba(232, 185, 35, 0.4);
    transform: translateY(-2px);
}

.folder-item.selected, .category-item.selected {
    background: rgba(232, 185, 35, 0.2);
    border-color: #e8b923;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-name {
    font-weight: 600;
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

.popular-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-category-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-category-item:hover {
    background: rgba(232, 185, 35, 0.1);
    border-color: rgba(232, 185, 35, 0.4);
    transform: translateY(-2px);
}

.no-categories {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.editor-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-field label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.folder-select, .category-select {
    padding: 10px 12px;
    border: 1px solid rgba(232, 185, 35, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.folder-select:focus, .category-select:focus {
    outline: none;
    border-color: #e8b923;
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
}

.color-input {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Styles pour les entrées avec catégories et dossiers */
.journal-entry {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(232, 185, 35, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.journal-entry:hover {
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.2);
    transform: translateY(-2px);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.entry-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.entry-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.entry-date, .entry-time {
    color: #666;
    font-size: 0.9rem;
}

.entry-time {
    font-weight: 500;
}

.entry-folder, .entry-category {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.entry-folder {
    background: rgba(232, 185, 35, 0.1);
    color: #e8b923;
    border: 1px solid rgba(232, 185, 35, 0.3);
}

.entry-category {
    color: white;
}

.entry-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.entry-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Styles pour les modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(232, 185, 35, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(232, 185, 35, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #e8b923;
    font-size: 1.3rem;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(232, 185, 35, 0.1);
    color: #e8b923;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(232, 185, 35, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #e8b923;
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(232, 185, 35, 0.2);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Mode nuit pour les nouveaux éléments */
.night-mode .folder-item,
.night-mode .category-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

.night-mode .folder-item:hover,
.night-mode .category-item:hover {
    background: rgba(135, 206, 235, 0.2) !important;
    border-color: #87CEEB !important;
}

.night-mode .folder-item.selected,
.night-mode .category-item.selected {
    background: rgba(135, 206, 235, 0.3) !important;
    border-color: #87CEEB !important;
}

.night-mode .popular-category-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

.night-mode .popular-category-item:hover {
    background: rgba(135, 206, 235, 0.2) !important;
    border-color: #87CEEB !important;
}

.night-mode .no-categories {
    color: #a0aec0 !important;
}

.night-mode .editor-meta {
    background: rgba(30, 41, 59, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.night-mode .meta-field label {
    color: #e2e8f0 !important;
}

.night-mode .folder-select,
.night-mode .category-select {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(135, 206, 235, 0.3) !important;
    color: #e2e8f0 !important;
}

.night-mode .journal-entry {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

.night-mode .entry-title,
.night-mode .entry-content {
    color: #e2e8f0 !important;
}

.night-mode .entry-date,
.night-mode .entry-time {
    color: #a0aec0 !important;
}

.night-mode .modal-content {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 2px solid rgba(135, 206, 235, 0.3) !important;
}

.night-mode .modal-header h3 {
    color: #87CEEB !important;
}

.night-mode .form-group label {
    color: #e2e8f0 !important;
}

.night-mode .form-input,
.night-mode .form-textarea {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(135, 206, 235, 0.3) !important;
    color: #e2e8f0 !important;
}

.night-mode .form-input:focus,
.night-mode .form-textarea:focus {
    border-color: #87CEEB !important;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.2) !important;
}

/* Affichage du filtre actif */
.active-filter {
    background: rgba(232, 185, 35, 0.1);
    border: 2px solid rgba(232, 185, 35, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8b923;
}

.clear-filter-btn {
    background: rgba(232, 185, 35, 0.2);
    border: 1px solid rgba(232, 185, 35, 0.4);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e8b923;
    transition: all 0.3s ease;
}

.clear-filter-btn:hover {
    background: rgba(232, 185, 35, 0.3);
    transform: scale(1.1);
}

/* Mode nuit pour le filtre actif */
.night-mode .active-filter {
    background: rgba(135, 206, 235, 0.1) !important;
    border: 2px solid rgba(135, 206, 235, 0.3) !important;
}

.night-mode .filter-text {
    color: #87CEEB !important;
}

.night-mode .clear-filter-btn {
    background: rgba(135, 206, 235, 0.2) !important;
    border: 1px solid rgba(135, 206, 235, 0.4) !important;
    color: #87CEEB !important;
}

.night-mode .clear-filter-btn:hover {
    background: rgba(135, 206, 235, 0.3) !important;
}

/* Section des entrées */
.entries-section {
    margin-top: 30px;
}

.entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(232, 185, 35, 0.2);
}

.entries-header h3 {
    color: #e8b923;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.entries-actions {
    display: flex;
    gap: 10px;
}

.recent-entries, .filtered-entries {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.recent-entries h4, .filtered-entries h4 {
    color: #e8b923;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(232, 185, 35, 0.2);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.entry-item:hover {
    background: rgba(232, 185, 35, 0.1);
    border-color: rgba(232, 185, 35, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.2);
}

.entry-item.active {
    background: rgba(232, 185, 35, 0.2);
    border-color: #e8b923;
}

.entry-item .entry-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1rem;
}

.entry-item .entry-date {
    font-size: 0.9rem;
    color: #666;
}

.entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.btn-move-category {
    background: rgba(232, 185, 35, 0.2);
    border: 1px solid rgba(232, 185, 35, 0.4);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e8b923;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-move-category:hover {
    background: rgba(232, 185, 35, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(232, 185, 35, 0.3);
}

/* Mode nuit pour les entrées */
.night-mode .recent-entries,
.night-mode .filtered-entries {
    background: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.night-mode .entries-header h3,
.night-mode .recent-entries h4,
.night-mode .filtered-entries h4 {
    color: #87CEEB !important;
}

.night-mode .entry-item {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #e2e8f0 !important;
}

.night-mode .entry-item:hover {
    background: rgba(135, 206, 235, 0.2) !important;
    border-color: #87CEEB !important;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4) !important;
}

.night-mode .entry-item.active {
    background: rgba(135, 206, 235, 0.3) !important;
    border-color: #87CEEB !important;
}

.night-mode .entry-item .entry-title {
    color: #e2e8f0 !important;
}

.night-mode .entry-item .entry-date {
    color: #a0aec0 !important;
}

.night-mode .btn-move-category {
    background: rgba(135, 206, 235, 0.2) !important;
    border: 1px solid rgba(135, 206, 235, 0.4) !important;
    color: #87CEEB !important;
}

.night-mode .btn-move-category:hover {
    background: rgba(135, 206, 235, 0.3) !important;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.4) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .editor-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .entry-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .entry-meta {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .active-filter {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .entries-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}