/**
 * ============================================================================
 * JSBILLING — Application Logicielle sous Licence Commerciale Payante
 * JSBILLING — Premium Commercial Software License
 * Reproduction ou distribution non autorisée strictement interdite.
 * Unauthorized reproduction or distribution strictly prohibited.
 * ============================================================================
 */

:root {
    --primary-dark: #1a1a2e;
    --primary-accent: #0984e3;
    --primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--primary-gradient);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #2d3436;
    margin: 0;
    padding: 0;
}

.install-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.install-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

.install-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 30px 20px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-circle i {
    font-size: 2rem;
    color: #fff;
}

.install-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.install-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0 0;
    font-size: 0.95rem;
}

.install-content {
    padding: 40px;
}

.install-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Progress Steps */
.install-progress {
    padding: 30px 40px 0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-accent);
    color: #fff;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 5px rgba(9, 132, 227, 0.2);
}

.progress-step.completed .step-circle {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.step-label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-accent);
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: var(--success);
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e9ecef;
    margin: 0 -10px;
    margin-bottom: 25px;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--success);
}

/* Requirements list */
.requirement-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.requirement-item:hover {
    background: #e9ecef;
}

.requirement-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.requirement-item.success .icon {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.requirement-item.error .icon {
    background: rgba(214, 48, 49, 0.15);
    color: var(--danger);
}

.requirement-item .label {
    flex: 1;
    font-weight: 500;
}

.requirement-item .value {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.form-control, .form-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.15);
}

.input-group-text {
    background: #f1f3f5;
    border: 1.5px solid #dee2e6;
    border-radius: 8px 0 0 8px;
}

/* Buttons */
.btn-primary {
    background: var(--primary-accent);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0770c2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.btn-primary:disabled {
    background: #b2bec3;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-secondary {
    border-radius: 8px;
    font-weight: 500;
}

/* Section titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f5;
}

.section-title i {
    color: var(--primary-accent);
    margin-right: 8px;
}

/* License box */
.license-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
}

.license-box h5 {
    color: var(--primary-dark);
    margin-top: 15px;
}

.license-box h5:first-child {
    margin-top: 0;
}

/* Alert custom */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-info {
    background: rgba(9, 132, 227, 0.1);
    color: #0770c2;
    border-left: 4px solid var(--primary-accent);
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: #00856a;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(214, 48, 49, 0.1);
    color: #a52425;
    border-left: 4px solid var(--danger);
}

/* Table creation list */
.table-created-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.table-created-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.table-created-item i {
    color: var(--success);
    margin-right: 10px;
}

/* Success final */
.success-box {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: rgba(0, 184, 148, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.success-icon i {
    font-size: 3rem;
    color: var(--success);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-accent);
}

.info-card strong {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .install-content {
        padding: 25px 20px;
    }
    
    .install-progress {
        padding: 20px 20px 0;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}