 /* Base Styles */
 :root {
    --primary-color: #0074d9;
    --primary-dark: #0074d9;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray-medium: #ced4da;
    --gray-dark: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 0.5rem;
}

.btn i {
    font-size: 0.9rem;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn.danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}





/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}



/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    border-radius: 4px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 80px 0 50px;
}

.sidebar {
    width: 280px;
    background-color: var(--white);
    border-right: 1px solid var(--gray-light);
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-list li {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.section-list li:hover {
    background-color: var(--gray-light);
}

.section-list li.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-list li i {
    width: 20px;
    text-align: center;
}

.content-area {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: var(--white);
}

.preview-area {
    width: 50%;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-left: 1px solid var(--gray-light);
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.form-container h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.half-width {
    width: 50%;
}

.item-container {
    background-color: var(--gray-light);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    position: relative;
}

.remove-btn {
    background-color: var(--danger-color);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Template Options */
.template-options {
    display: flex;
    gap: 1rem;
}

.template-preview {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.template-preview:hover {
    transform: translateY(-3px);
}

.template-preview.active {
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 0.5rem;
}

.template-thumbnail {
    width: 100px;
    height: 140px;
    background-color: var(--gray-light);
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.modern .template-thumbnail {
    background: linear-gradient(135deg, #4a6bff 0%, #6c8eff 100%);
}

.classic .template-thumbnail {
    background: linear-gradient(135deg, #343a40 0%, #6c757d 100%);
}

/* Layout Options */
.layout-options {
    display: flex;
    gap: 0.5rem;
}

.layout-btn {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--gray-light);
    color: var(--dark-color);
}

.layout-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* CV Preview Styles */
.preview-container {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-height: 100%;
}

.modern-template {
    font-family: var(--font-primary);
}

.classic-template {
    font-family: var(--font-secondary);
}

.cv-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.cv-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.cv-title h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cv-title h2 {
    font-size: 1.25rem;
    color: var(--gray-dark);
    font-weight: 400;
}

.cv-body {
    display: flex;
    gap: 2rem;
}

.cv-body.one-column {
    flex-direction: column;
}

.cv-body.two-columns {
    flex-direction: row;
}

.cv-left-column {
    flex: 1;
}

.cv-right-column {
    flex: 2;
}

.cv-section {
    margin-bottom: 1.5rem;
}

.cv-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-info i {
    width: 20px;
    color: var(--primary-color);
}

.skills-list li,
.languages-list li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.skill-level,
.language-proficiency {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background-color: var(--gray-light);
}

.skill-level.beginner {
    background-color: #ffc107;
    color: #000;
}

.skill-level.intermediate {
    background-color: #fd7e14;
    color: #fff;
}

.skill-level.advanced {
    background-color: #007bff;
    color: #fff;
}

.skill-level.expert {
    background-color: #28a745;
    color: #fff;
}

.language-proficiency.basic {
    background-color: #ffc107;
    color: #000;
}

.language-proficiency.intermediate {
    background-color: #fd7e14;
    color: #fff;
}

.language-proficiency.fluent {
    background-color: #007bff;
    color: #fff;
}

.language-proficiency.native {
    background-color: #28a745;
    color: #fff;
}

.cv-experience-item,
.cv-education-item,
.cv-project-item,
.cv-certification-item {
    margin-bottom: 1.5rem;
}

.cv-experience-item h4,
.cv-education-item h4,
.cv-project-item h4,
.cv-certification-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.company,
.institution,
.issuer {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.duration,
.date {
    color: var(--gray-dark);
    font-weight: 400;
}

.description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-url {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Classic Template Specific Styles */
.classic-template .cv-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.classic-template .cv-photo img {
    width: 150px;
    height: 150px;
}

.classic-template .cv-title h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.classic-template .cv-title h2 {
    font-size: 1.5rem;
    color: var(--gray-dark);
}

.classic-template .cv-section h3 {
    color: var(--dark-color);
    border-bottom: 1px solid var(--gray-medium);
}

.classic-template .contact-info i {
    color: var(--dark-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .preview-area {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .content-area, 
    .preview-area {
        width: 100%;
    }
    
    .preview-area {
        border-left: none;
        border-top: 1px solid var(--gray-light);
    }
    
    .cv-body.two-columns {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .half-width {
        width: 100%;
    }
    
    .template-options {
        flex-direction: column;
    }
    
    .template-preview {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .template-thumbnail {
        width: 60px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .cv-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cv-photo {
        margin-bottom: 1rem;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

#emailForm .form-group {
    margin-bottom: 20px;
}

#emailForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#emailForm input,
#emailForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

#emailForm textarea {
    min-height: 100px;
    resize: vertical;
}


