/* ========================================
   PANNEAU DE LOG - STYLES
======================================== */

#logPanel {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
    min-height: 0px;
    display: none; /* Masqué par défaut */
    flex: 1;
    flex-direction: column;
    margin-top:0px;
    padding-top:0px;
}

#logPanel.active {
    display: flex;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.log-title {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.log-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

#copyLogBtn {
    background: white;
    color: #666;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    font-weight: 500;
    min-width: 30px;
    border: 1px solid #ddd;
    height: 30px;
    margin-top:15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#copyLogBtn:hover {
    background: #f0f0f0;
    color: #333;
}

#copyLogBtn:active {
    background: #e0e0e0;
}

#copyLogBtn.copied {
    background: #d4edda;
    color: #28a745;
}

#logContent {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    padding-top: 30px;
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    min-height: 200px;
}

/* Messages dans le log */
.log-message {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.log-message.info {
    color: #333;
}

.log-message.success {
    color: #28a745;
}

.log-message.error {
    color: #dc3545;
}

.log-message.warning {
    color: #ffc107;
}

.log-message.data {
    color: #17a2b8;
}

/* Préfixes des messages */
.log-prefix {
    font-weight: bold;
    margin-right: 5px;
}

/* Auto-scroll animation */
#logContent.scrolling {
    scroll-behavior: smooth;
}

/* Style pour les timestamps */
.log-timestamp {
    opacity: 0.7;
    font-size: 11px;
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    #logPanel {
        margin: 5px 0;
        padding: 8px;
    }
    
    .log-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .log-title {
        font-size: 16px;
        text-align: center;
    }
    
    #logContent {
        font-size: 11px;
        min-height: 150px;
        max-height: 300px;
    }
}