* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section,
.preview-section {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.preview-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.preview-title h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.preview-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 140px;
}

#updatePreview {
    background-color: #3498db;
    color: white;
}

#updatePreview:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.section-title {
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.4rem;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

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

.cv-preview {
    flex: 1;
    padding: 25px;
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    min-height: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* CV Preview Styles */
.cv-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.cv-name {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: bold;
}

.cv-title {
    font-size: 1.3rem;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: 500;
}

.cv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
    color: #555;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-section-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.cv-item {
    margin-bottom: 15px;
}

.cv-item-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.cv-item-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
    margin: 5px 0;
}

.cv-item-desc {
    margin-top: 5px;
    line-height: 1.5;
    color: #555;
}

button {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-download:hover {
    background-color: #219653;
    transform: translateY(-2px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.skill-tag {
    background-color: #eaf2f8;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2c3e50;
    border: 1px solid #d4e6f1;
}

.form-row {
    display: flex;
    gap: 15px;
}

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

.security-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-add:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.job-entry,
.education-entry {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    position: relative;
}

.btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-remove:hover {
    background-color: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.simple-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.simple-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.gdpr-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.gdpr-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gdpr-content p {
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.gdpr-content a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.gdpr-content a:hover {
    text-decoration: underline;
}

.gdpr-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-accept,
.btn-decline {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-accept:hover {
    background: #219653;
    transform: translateY(-1px);
}

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

.btn-decline:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
nav {
    background: white;
    padding: 0;
    margin: 0 0 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #3498db;
    animation: slideInDown 0.5s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand a:hover {
    transform: translateY(-1px);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand a:hover .brand-text {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #2c3e50;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background: #f8f9fa;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.nav-link.active::before {
    display: none;
}

.nav-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

/* Guide and Policy Page Styles */
.guide-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    line-height: 1.7;
}

.guide-content h2 {
    color: #2c3e50;
    margin: 35px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.8rem;
}

.guide-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.guide-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.guide-content ul,
.guide-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.guide-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.tip-box {
    background: #eaf2f8;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-button {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 20px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #219653;
    transform: translateY(-2px);
}

.simple-toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.simple-toc h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.toc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toc-links a {
    background: white;
    color: #3498db;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.toc-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.meta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Animation */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

/* Simple mobile fix for guide page */
@media (max-width: 768px) {
    .guide-content {
        margin: 0 -20px !important;
        padding: 25px !important;
        width: calc(100% + 40px) !important;
        border-radius: 0 !important;
    }

    .container {
        max-width: none !important;
        padding: 0 !important;
    }

    .meta-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 10px 15px;
        font-size: 0.95rem;
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .preview-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .preview-title {
        justify-content: center;
        text-align: center;
    }

    .preview-actions {
        justify-content: center;
    }

    .preview-actions button {
        flex: 1;
        min-width: 120px;
    }

    .cv-preview {
        min-height: 250px;
        padding: 20px;
    }

    .toc-links {
        flex-direction: column;
    }

    .toc-links a {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .job-entry .form-row,
    .education-entry .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .gdpr-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .gdpr-banner {
        bottom: 10px;
        width: 95%;
    }

    .gdpr-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-accept,
    .btn-decline {
        flex: 1;
        max-width: 120px;
    }

    .buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .preview-actions {
        flex-direction: column;
    }

    .preview-actions button {
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-brand {
        justify-content: center;
    }
}