/**
 * Estanar CIP Public Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

.estanar-assessment,
.estanar-results {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* RTL Support */
[dir="rtl"] .estanar-assessment,
[dir="rtl"] .estanar-results {
    text-align: right;
}

/* Buttons */
.estanar-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.estanar-btn-primary {
    background: #3498db;
    color: white;
}

.estanar-btn-primary:hover {
    background: #2980b9;
    color: white;
}

.estanar-btn-success {
    background: #27ae60;
    color: white;
}

.estanar-btn-success:hover {
    background: #219a52;
    color: white;
}

.estanar-btn-secondary {
    background: #95a5a6;
    color: white;
}

.estanar-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.estanar-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
    text-align: center;
}

.estanar-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Messages */
.estanar-message {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.estanar-message h3 {
    margin-top: 0;
    color: #2c3e50;
}

.estanar-message-info {
    border-left: 4px solid #3498db;
}

.estanar-message-warning {
    border-left: 4px solid #f39c12;
}

.estanar-message-error {
    border-left: 4px solid #e74c3c;
}

.estanar-message-success {
    border-left: 4px solid #27ae60;
}

[dir="rtl"] .estanar-message {
    border-left: none;
}

[dir="rtl"] .estanar-message-info {
    border-right: 4px solid #3498db;
}

[dir="rtl"] .estanar-message-warning {
    border-right: 4px solid #f39c12;
}

[dir="rtl"] .estanar-message-error {
    border-right: 4px solid #e74c3c;
}

[dir="rtl"] .estanar-message-success {
    border-right: 4px solid #27ae60;
}

/* Loader */
.estanar-loader {
    text-align: center;
    padding: 60px 20px;
}

.estanar-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: estanar-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes estanar-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar */
.estanar-progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.estanar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #27ae60);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Cards */
.estanar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

/* Score Display */
.score-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.level-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive */
@media (min-width: 768px) {
    .estanar-btn-lg {
        width: auto;
    }
}
