/* ===== DASHBOARD SPECIFIC STYLES ===== */

.dashboard-body {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Dashboard Navigation */
.dashboard-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(59, 130, 246, 0.95));
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.nav-brand i {
    font-size: 28px;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: #141414;
    border-right: 1px solid rgba(124, 58, 237, 0.2);
    padding: 24px 0;
    position: fixed;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu li:hover {
    background: rgba(124, 58, 237, 0.1);
    color: white;
}

.sidebar-menu li.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.2), transparent);
    color: white;
    border-left-color: #7c3aed;
}

.sidebar-menu li i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-menu li span {
    font-weight: 500;
    font-size: 14px;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    max-width: calc(100% - 280px);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 90px;
    right: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1001;
}

.success-message.show {
    transform: translateX(0);
    opacity: 1;
}

.success-message i {
    font-size: 24px;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.3);
}

.section-header h2 {
    font-size: 28px;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #7c3aed;
}

.section-header p {
    color: #9ca3af;
    font-size: 14px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

.form-group label:not(:has(+[required]))::after {
    content: '';
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ===== VALIDATION STYLES ===== */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.field-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-error::before {
    content: '⚠';
    font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.help-text {
    color: #6b7280;
    font-size: 12px;
    margin-top: 6px;
}

.char-count {
    text-align: right;
    color: #6b7280;
    font-size: 12px;
    margin-top: 8px;
}

/* Dynamic Items (Experience, Education, etc.) */
.dynamic-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.dynamic-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #374151;
}

.item-number {
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

/* Skills Section */
.skills-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 50px;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #7c3aed;
    color: white;
}

.tab-btn.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent;
    color: white;
}

.skills-content {
    display: none;
}

.skills-content.active {
    display: block;
}

.skill-input-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.skill-input-row input[type="text"] {
    width: 100%;
}

.skill-input-row input[type="range"] {
    width: 100%;
}

.range-value {
    background: #7c3aed;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Image Upload */
.image-upload-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #1f2937;
    border: 2px dashed #374151;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    flex-shrink: 0;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-controls .btn {
    justify-content: flex-start;
    min-width: 180px;
}

/* Achievement Inputs */
.achievement-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.achievement-row input {
    flex: 1;
}

.btn-add-achievement {
    background: transparent;
    color: #10b981;
    border: 1px dashed #10b981;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-achievement:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* Technology Tags Input */
.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 12px;
    min-height: 56px;
}

.tech-tag {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-tag .remove-tag {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tech-tag .remove-tag:hover {
    opacity: 1;
}

.tech-input {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    font-size: 14px;
}

.tech-input:focus {
    outline: none;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid rgba(124, 58, 237, 0.3);
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-add {
    background: transparent;
    color: #7c3aed;
    border: 2px dashed #7c3aed;
    padding: 16px 32px;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.btn-add:hover {
    background: rgba(124, 58, 237, 0.1);
    border-style: solid;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 240px;
    }

    .dashboard-main {
        margin-left: 240px;
        max-width: calc(100% - 240px);
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 16px;
    }

    .sidebar-menu li {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar-menu li.active {
        border-left: none;
        border-bottom-color: #7c3aed;
    }

    .dashboard-main {
        margin-left: 0;
        max-width: 100%;
        padding: 24px;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .skill-input-row {
        grid-template-columns: 1fr;
    }

    .nav-actions {
        display: none;
    }

    .image-upload-container {
        flex-direction: column;
        text-align: center;
    }

    .image-preview {
        width: 120px;
        height: 120px;
    }

    .upload-controls {
        width: 100%;
    }

    .upload-controls .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* ===== THEME SELECTOR ===== */
.theme-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.theme-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-option:hover {
    transform: scale(1.1);
}

.theme-option.active {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.5);
}

/* ===== STRENGTH METER ===== */
.strength-meter-container {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 16px;
}

.strength-label {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.strength-label #strengthText {
    color: white;
    font-weight: 700;
}

.strength-bar-bg {
    height: 6px;
    background: #1f2937;
    border-radius: 10px;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ===== PREVIEW PANE ===== */
.preview-pane {
    width: 0;
    transition: width 0.3s ease;
    border-left: 1px solid rgba(124, 58, 237, 0.2);
    background: white;
    overflow: hidden;
}

.dashboard-container.split-view .dashboard-main {
    width: 50%;
    max-width: 50%;
    margin-left: 280px;
    /* Keep sidebar margin */
}

.dashboard-container.split-view .preview-pane {
    width: 50%;
    display: block;
}

.preview-pane iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1200px) {
    .dashboard-container.split-view .dashboard-main {
        width: 100%;
        max-width: 100%;
    }

    .dashboard-container.split-view .preview-pane {
        display: none;
        /* Hide on smaller screens */
    }
}