/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1e1e1e;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #cccccc;
}

/* ============================================
   WORKFLOW BAR
   ============================================ */

#workflowBar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #2d2d30;
    border-bottom: 1px solid #3e3e42;
}

#workflowSelect {
    flex: 1;
    padding: 8px;
    background: #3e3e42;
    color: #d4d4d4;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

#workflowSelect:focus {
    outline: none;
    border-color: #007acc;
}

#editWorkflowBtn {
    padding: 8px 12px;
    background: #4A9EFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#editWorkflowBtn:hover {
    background: #3A8EEF;
}

/* ============================================
   CHAT CONTAINER
   ============================================ */

#chatContainer {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    background: #1e1e1e;
}

#chatContainer::-webkit-scrollbar {
    width: 10px;
}

#chatContainer::-webkit-scrollbar-track {
    background: #1e1e1e;
}

#chatContainer::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
}

#chatContainer::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

/* ============================================
   MESSAGES
   ============================================ */

.message {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message.user {
    align-items: flex-end;
}

.message.assistant {
    align-items: flex-start;
}

.message.system {
    align-items: flex-start;
}

.message-content {
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 13px;
    padding-left:3px;
}

.message.user .message-content {
    background: #2d2d30;
    color: #cccccc;
    border-color: #3e3e42;
}

.message.assistant .message-content {
    color: #cccccc;
}

.message.system .message-content {
    max-width: 90%;
    font-size: 12px;
}

.message.error .message-content {
    background: #5a1d1d;
    color: #f48771;
    border-color: #8b2c2c;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
    overflow-x: auto;
}

.message-content code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #ce9178;
}

.message-content pre code {
    color: #9cdcfe;
}

/* Messages outils */
.message.tool {
    align-items: flex-start;
    margin-bottom: 16px;
}

.message.tool .message-content {
    background: transparent;
    color: #cccccc;
    border: none;
    padding: 8px 16px;
    max-width: 100%;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.tool .message-content::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #05c448;
    display: inline-block;
    flex-shrink: 0;
}

.message.tool .message-content strong {
    color: #cccccc;
    font-weight: 600;
}

/* ============================================
   COMPILATION BADGE
   ============================================ */

.compilation-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #264f78;
    color: #9cdcfe;
    border: 1px solid #2d5a8f;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.compilation-badge:hover {
    background: #2d5a8f;
    border-color: #3a6ea5;
}

.compilation-badge::before {
    content: "📎";
    font-size: 10px;
}

/* ============================================
   APPROVAL REQUEST
   ============================================ */

.approval-request {
    background: #2d2d30;
    border: 1px solid #3a6ea5;
    padding: 16px;
    border-radius: 8px;
    margin: 12px 0;
}

.approval-request strong {
    color: #9cdcfe;
    font-size: 13px;
}

.approval-request pre {
    margin-top: 8px;
    font-size: 11px;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 8px;
    border-radius: 4px;
    max-height: 200px;
    overflow: auto;
    border: 1px solid #3e3e42;
}

.approval-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.approval-buttons button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

.approval-buttons .approve {
    background: #0e639c;
    color: white;
}

.approval-buttons .approve:hover {
    background: #1177bb;
}

.approval-buttons .deny {
    background: #5a1d1d;
    color: #f48771;
}

.approval-buttons .deny:hover {
    background: #732525;
}

/* ============================================
   TYPING INDICATOR
   ============================================ */

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #858585;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { 
        transform: translateY(0); 
    }
    30% { 
        transform: translateY(-8px); 
    }
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
    background: #252526;
    padding: 16px;
    border-radius: 8px;
    margin: 12px 0;
    border: 1px solid #3e3e42;
}

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

.progress-title {
    font-size: 13px;
    font-weight: 500;
    color: #cccccc;
}

.progress-percentage {
    font-size: 12px;
    font-weight: 600;
    color: #9cdcfe;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #1e1e1e;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007acc, #0098ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-status {
    margin-top: 8px;
    font-size: 11px;
    color: #858585;
}

/* ============================================
   INPUT AREA
   ============================================ */

#inputArea {
    background: #252526;
    padding: 12px 16px;
    border-top: 1px solid #3e3e42;
}

#inputContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#messageInput {
    width: 100%;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    background: #1e1e1e;
    color: #cccccc;
    transition: border-color 0.2s;
}

#messageInput:focus {
    outline: none;
    border-color: #007acc;
}

#messageInput::placeholder {
    color: #858585;
}

#inputFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#leftControls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

#anonymizationStatus {
    font-size: 11px;
    color: #858585;
    font-weight: 400;
    border: 1px solid #4ec9b050;
    background: #4ec9b010;
    padding: 4px 8px;
    border-radius: 4px;
}

#clearMappingBtn {
    background: transparent;
    color: #858585;
    border: 1px solid #3e3e42;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

#clearMappingBtn:hover {
    color: #cccccc;
    border-color: #4e4e4e;
    background: #2d2d30;
}

#rightControls {
    display: flex;
    gap: 8px;
    align-items: center;
}

#selectFilesBtn {
    background: transparent;
    border: 1px solid #3e3e42;
    color: #858585;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

#selectFilesBtn:hover {
    color: #cccccc;
    border-color: #4e4e4e;
    background: #2d2d30;
}

#sendBtn {
    background: #0e639c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

#sendBtn:hover:not(:disabled) {
    background: #1177bb;
}

#sendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   SELECTION INDICATOR
   ============================================ */

#selectionIndicator {
    font-size: 11px;
    color: #9cdcfe;
    padding: 8px 16px;
    min-height: 16px;
    background: #1e1e1e;
    border-top: 1px solid #3e3e42;
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: none;
}

#selectionIndicator.visible {
    display: block;
}

/* ============================================
   SETTINGS BUTTON
   ============================================ */

#settingsBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #cccccc;
    cursor: pointer;
    font-size: 18px;
    z-index: 100;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

#settingsBtn:hover {
    background: #2d2d30;
}

/* ============================================
   INLINE CODE & EMPHASIS
   ============================================ */

code {
    background: #2d2d30;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #d4d4d4;
    border: 1px solid #3e3e42;
}

em {
    background: #2d2d30;
    border: 1px solid #3e3e42;
    font-style: italic;
}

/* ============================================
   MODALS - SYSTÈME UNIFIÉ
   ============================================ */

.modal,
#modal,
#mappingModal,
#workflowModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* État visible */
.modal.show,
#modal.show,
#mappingModal.show,
#workflowModal.show {
    display: flex;
}

/* Z-index hiérarchique */
#modal {
    z-index: 1000;
}

#workflowModal {
    z-index: 1500;
}

#mappingModal {
    z-index: 2000;
}

/* ============================================
   CONTENEURS DE MODALS
   ============================================ */

#modalContent,
#mappingModal > div,
.modal-content {
    background: #252526;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #3e3e42;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Workflow modal - plus large */
.workflow-editor {
    max-width: 800px;
    max-height: 90vh;
}

/* Scrollbar pour les modals */
#modalContent::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 10px;
}

#modalContent::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: #252526;
}

#modalContent::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
}

#modalContent::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

/* ============================================
   HEADERS DE MODALS
   ============================================ */

#modalHeader,
.modal-header {
    background: #2d2d30;
    color: #cccccc;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
}

#modalHeader h2,
.modal-header h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Boutons de fermeture */
#closeModal,
.close-btn,
#closeMappingModal,
#closeWorkflowModal {
    background: transparent;
    border: none;
    color: #cccccc;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
}

#closeModal:hover,
.close-btn:hover,
#closeMappingModal:hover,
#closeWorkflowModal:hover {
    background: #3e3e42;
    color: #ffffff;
}

/* ============================================
   BODY DES MODALS
   ============================================ */

#modalBody,
#mappingContent {
    padding: 20px;
}

/* ============================================
   SETTINGS MODAL - FORM GROUPS
   ============================================ */

.settings-section {
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #9cdcfe;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #cccccc;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    font-size: 13px;
    background: #2d2d30;
    color: #cccccc;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007acc;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #858585;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #858585;
    font-size: 11px;
    font-style: italic;
}

/* Checkboxes dans les form-groups */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.saveBtn {
    background: #0e639c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.saveBtn:hover {
    background: #1177bb;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.connected {
    background: #89d185;
}

.status-indicator.disconnected {
    background: #f48771;
}

/* ============================================
   MAPPING MODAL - SPÉCIFIQUE
   ============================================ */

#mappingContent h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #9cdcfe;
}

#mappingContent > div > div {
    padding: 8px;
    background: #2d2d30;
    margin: 4px 0;
    border-radius: 4px;
    border: 1px solid #3e3e42;
    font-size: 12px;
}

#mappingContent strong {
    color: #00e331;
}

#mappingContent span {
    color: #858585;
}

#validateMapping,
#cancelMapping {
    flex: 1;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    border: none;
    transition: all 0.2s;
}

#validateMapping {
    background: #0e639c;
    color: white;
}

#validateMapping:hover {
    background: #1177bb;
}

#cancelMapping {
    background: #5a1d1d;
    color: #f48771;
}

#cancelMapping:hover {
    background: #732525;
}

/* ============================================
   WORKFLOW MODAL - TABS
   ============================================ */

.workflow-tabs {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    margin-top: 20px;
    border-bottom: 2px solid #3e3e42;
    background: #252526;
}

.workflow-tab {
    padding: 10px 20px;
    background: transparent;
    color: #858585;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.workflow-tab:hover {
    color: #cccccc;
    background: #2d2d30;
}

.workflow-tab.active {
    color: #4A9EFF;
    border-bottom-color: #4A9EFF;
    background: transparent;
}

.workflow-tab-content {
    display: none;
    padding: 20px;
}

.workflow-tab-content.active {
    display: block;
}

/* ============================================
   TOOLS SECTION (Workflow Modal)
   ============================================ */

.tools-section {
    margin-bottom: 24px;
}

.tools-section h3 {
    color: #4A9EFF;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-item:hover {
    background: #37373d;
    border-color: #4e4e4e;
}

.tool-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tool-name {
    font-weight: 600;
    color: #e0e0e0;
    min-width: 150px;
}

.tool-desc {
    color: #858585;
    font-size: 12px;
    flex: 1;
}

.tools-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.tools-actions button {
    padding: 8px 16px;
    background: #3e3e42;
    color: #d4d4d4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.tools-actions button:hover {
    background: #4e4e4e;
    color: #ffffff;
}

/* ============================================
   PROMPT TEMPLATES
   ============================================ */

.prompt-templates {
    margin-top: 12px;
}

.prompt-templates label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 12px;
}

.template-btn {
    margin: 4px;
    padding: 6px 12px;
    background: #3e3e42;
    color: #d4d4d4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.template-btn:hover {
    background: #4A9EFF;
    color: white;
}

/* ============================================
   MODAL FOOTER
   ============================================ */

.modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #3e3e42;
    background: #252526;
}

.modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-primary {
    background: #4A9EFF;
    color: white;
}

.btn-primary:hover {
    background: #3A8EEF;
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-danger:hover {
    background: #E53935;
}

.btn-secondary {
    background: #858585;
    color: white;
}

.btn-secondary:hover {
    background: #757575;
}

/* ============================================
   FILES AREA (Hidden by default)
   ============================================ */

#filesArea {
    padding: 8px 0;
    background: #252526;
    border-top: 1px solid #3e3e42;
    display: none;
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    #modalContent,
    #mappingModal > div,
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .workflow-editor {
        max-width: 95%;
    }
    
    #workflowBar {
        padding: 8px 12px;
    }
    
    #workflowSelect {
        font-size: 12px;
    }
    
    #editWorkflowBtn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .workflow-tabs {
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .workflow-tab {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .tool-name {
        min-width: 100px;
        font-size: 11px;
    }
    
    .tool-desc {
        display: none;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .message-content {
        max-width: 95%;
        font-size: 12px;
    }
    
    #inputArea {
        padding: 8px 12px;
    }
    
    #messageInput {
        font-size: 12px;
    }
    
    #leftControls {
        flex-wrap: wrap;
    }
}
/* Messages de réflexion (thinking) */
.message.thinking {
    align-items: flex-start;
}

.message.thinking .message-content {
    background: #2a2d2e;
    border: 1px solid #4a4d4e;
    border-left: 3px solid #9cdcfe;
    color: #cccccc;
    max-width: 90%;
    padding: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}
.thinking-header {
    background: #3a3d3e;
    padding: 8px 12px;
    border-bottom: 1px solid #4a4d4e;
    font-weight: 600;
    color: #9cdcfe;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thinking-content {
    padding: 12px;
    line-height: 1.5;
    color: #d4d4d4;
}

.task-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.task-item {
    margin-bottom: 12px;
    padding: 8px;
    border-left: 2px solid #4a4d4e;
}

.task-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.task-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.task-title {
    font-weight: bold;
}

.task-description {
    margin-left: 24px;
    margin-top: 4px;
    font-size: 0.9em;
    color: #b0b0b0;
}

.task-tool {
    margin-left: 24px;
    margin-top: 4px;
    font-size: 0.85em;
    color: #9cdcfe;
}
/* Animation d'apparition pour les thinking blocks */
.message.thinking {
    animation: thinkingFadeIn 0.3s ease-in;
}

@keyframes thinkingFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mapping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin: 4px 0;
    background: #1e1e1e;
    border-radius: 4px;
    border: 1px solid #3e3e42;
}

.mapping-code, .mapping-original {
    padding: 4px 8px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    color: #cccccc;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

.mapping-code {
    min-width: 120px;
    font-weight: bold;
}

.mapping-original {
    flex: 1;
    cursor: not-allowed;
}

.delete-mapping-btn {
    background: transparent;
    border: 1px solid #f48771;
    color: #f48771;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.delete-mapping-btn:hover {
    background: #f48771;
    color: #1e1e1e;
}

.add-mapping-btn {
    margin: 8px 0;
    padding: 6px 12px;
    background: #0e639c;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.add-mapping-btn:hover {
    background: #1177bb;
}



/* États du body */
body.minimized {
    overflow: hidden;
}

body.minimized > *:not(#minimizedView) {
    display: none !important;
}

/* Bouton de minimisation */
.minimize-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f3f3f3;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s;
    z-index: 999;
}

.minimize-btn:hover {
    background: #e0e0e0;
}

/* Vue minimisée */
.minimized-view {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

body.minimized .minimized-view {
    display: flex !important;
}

.minimized-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.minimized-title {
    font-size: 16px;
    font-weight: 600;
}

.restore-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

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