/* --------------------------------------------
   Nouvil CV Generator - Dashboard Style
   Dark Mode Glassmorphism + Responsive
----------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nouvil-cv-container {
    background: #0b0f19;
    padding: 30px 20px;
    border-radius: 24px;
    font-family: 'Cairo', 'Poppins', sans-serif;
    direction: rtl;
}

/* شريط الأدوات العلوي */
.nouvil-cv-toolbar {
    background: rgba(25, 32, 52, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 40px;
}

.toolbar-group label {
    color: #cbd5e1;
    font-weight: 500;
}

.glass-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #6366f1;
    color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.color-pickers input {
    width: 40px;
    height: 40px;
    
    cursor: pointer;
    background: transparent;
}

.nouvil-gradient-btn {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.nouvil-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.5);
}
.small {
    padding: 6px 18px;
    font-size: 14px;
}

/* القسم المنقسم */
.nouvil-split-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.left-form-panel {
    flex: 1.2;
    min-width: 320px;
}

.right-preview-panel {
    flex: 1.8;
    min-width: 400px;
}

.glass-panel {
    background: rgba(25, 32, 52, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* التبويبات */
.tabs-header {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #334155;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 40px;
    transition: 0.3s;
}
.tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    box-shadow: 0 0 10px rgba(99,102,241,0.5);
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* حقول الإدخال */
.form-row {
    margin-bottom: 18px;
}
.form-row label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-weight: 500;
}
.glass-input, textarea.glass-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 12px 16px;
    color: #f1f5f9;
    font-size: 14px;
    transition: 0.2s;
}
.glass-input:focus {
    border-color: #a855f7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.3);
}
textarea.glass-input {
    min-height: 80px;
    resize: vertical;
}

/* الحقول المتكررة (Repeater) */
.repeater-item, .skill-item, .language-item {
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid #334155;
}
.remove-item-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.remove-item-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}
.skill-item input[type="range"] {
    width: 60%;
    margin-top: 10px;
}
.skill-percent {
    color: #a855f7;
    margin-right: 10px;
}

/* المعاينة */
.cv-preview-wrapper {
    background: white;
    border-radius: 20px;
    overflow: auto;
    max-height: 90vh;
    box-shadow: 0 20px 35px rgba(0,0,0,0.5);
}
#cv-live-preview {
    background: white;
    transition: all 0.2s;
}
.cv-loading {
    text-align: center;
    padding: 50px;
    color: #334155;
}

/* نصوص SEO */
.nouvil-seo-footer {
    margin-top: 35px;
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

/* استجابة للجوال */
@media (max-width: 768px) {
    .nouvil-split-layout {
        flex-direction: column;
                overflow: auto;
    }
    .nouvil-cv-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-group {
        justify-content: space-between;
    }
    .color-pickers {
        flex-wrap: wrap;
    }
}