/* =========================================================
   SOULRISE ADMIN STYLE v18.0 (FINAL UI KIT)
   ========================================================= */

:root {
    --sr-primary: #5A208A;
    --sr-primary-hover: #4a1a72;
    --sr-secondary: #F4B73B;
    --sr-text: #2c3e50;
    --sr-bg-card: #ffffff;
    --sr-border: #dcdcde;
    --sr-success: #10b981;
    --sr-warning: #f59e0b;
    --sr-error: #ef4444;
}

/* --- 1. STRUCTURE & LAYOUT --- */
.soulrise-admin-wrap {
    max-width: 1200px;
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sr-main-title {
    display: flex; align-items: center; gap: 12px;
    color: var(--sr-primary); font-weight: 800;
}
.sr-main-title small {
    font-size: 12px; font-weight: 400; color: #666;
    background: #e5e5e5; padding: 2px 8px; border-radius: 4px;
}

.sr-grid-container {
    display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px;
}
.sr-column {
    flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 20px;
}

/* --- 2. COMPOSANTS CARDS --- */
.sr-card {
    background: var(--sr-bg-card);
    border: 1px solid var(--sr-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}
.sr-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.sr-card-highlight { border-top: 4px solid var(--sr-secondary); }

.sr-card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid #f0f0f1; padding-bottom: 10px;
}
.sr-card-header h2 { margin: 0; font-size: 16px; font-weight: 700; color: #333; }

/* --- 3. FORM ELEMENTS --- */
.sr-prompt-area {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px; line-height: 1.5;
    border: 1px solid #ccc; background: #fdfdfd;
}
.full-width { width: 100%; box-sizing: border-box; }

input[type="text"], input[type="password"], textarea, select {
    border-radius: 4px; border: 1px solid #ccc; padding: 8px;
}
input[type="text"]:focus, textarea:focus {
    border-color: var(--sr-primary); box-shadow: 0 0 0 1px var(--sr-primary);
}

/* --- 4. GENERATOR UI (Pour le Shortcode & Admin) --- */
.sr-success-icon { font-size: 40px; margin-bottom: 10px; display: block; }

.sr-btn-action {
    display: inline-flex; align-items: center; gap: 6px;
    background: #166534; color: #fff; padding: 10px 20px;
    border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.2s;
}
.sr-btn-action:hover { background: #14532d; color: #fff; }

.sr-btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0f0f1; color: #333; padding: 10px 20px;
    border-radius: 6px; border: 1px solid #ccc; cursor: pointer;
    text-decoration: none; font-weight: bold; transition: 0.2s;
    margin-left: 10px;
}
.sr-btn-secondary:hover { background: #e5e5e5; }

/* Avertissement (Orange) */
.sr-warning-box { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; padding: 20px; border-radius: 8px; text-align: center; margin-top: 20px; }
.sr-warning-box .sr-btn-action { background: #b45309; }

/* Erreur (Rouge) */
.sr-error-box { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 15px; border-radius: 8px; margin-top: 20px; }

/* Success (Vert) */
.sr-success-box { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: 20px; border-radius: 8px; text-align: center; margin-top: 20px; }

/* --- 5. LOGS TABLE --- */
.sr-log-type-success { color: var(--sr-success); font-weight: bold; }
.sr-log-type-error { color: var(--sr-error); font-weight: bold; }

/* --- 6. ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }