/* FRACTILIS FORGE - EXTENSION MAGIKPUNK */

/* Aération globale du Layout */
.app {
    grid-template-columns: 260px 1fr !important; /* Sidebar plus large pour plus
de confort */
}

.content-area {
    background: radial-gradient(circle at center, var(--bg3) 0%, var(--bg) 100%)
!important;
    padding: 10px;
}

/* Panneau IA Rétractable (Drawer) */
.ai-chat {
    position: fixed !important;
    right: 0;
    top: var(--tb);
    width: 400px;
    height: calc(100vh - var(--tb));
    background: var(--bg-panel) !important;
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--br-main);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.ai-chat.hidden {
    transform: translateX(100%);
}

/* Bouton de toggle IA */
.ai-toggle-btn {
    position: fixed;
    right: 20px;
    top: 70px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-ac);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-ac);
    font-size: 20px;
}

/* Amélioration des Cartes (Style Obsidian/Milanote) */
.entry-card {
    border-radius: 8px !important;
    border: 1px solid var(--br3) !important;
    transition: all 0.3s ease !important;
    background: rgba(13, 13, 32, 0.6) !important;
}

.entry-card:hover {
    border-color: var(--accent-cry) !important;
    background: rgba(0, 206, 201, 0.05) !important;
    transform: translateY(-4px) scale(1.02);
}

/* Timeline immersive (Style Campfire) */
.tl-ev {
    background: rgba(255,255,255,0.02);
    border-left: 2px solid var(--br3);
    margin-left: 10px;
    padding-left: 20px;
    transition: all 0.2s;
}

.tl-ev:hover {
    border-left-color: var(--accent-pk);
    background: rgba(232, 67, 147, 0.05);
}