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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --background-color: white;
    --container-background: white;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-section {
    padding: 40px;
    background: #f8f9fa;
    overflow-y: auto;
    max-height: 100vh;
}

.preview-section {
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
    background: var(--background-color);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.header-with-language {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.language-selector {
    flex-shrink: 0;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background-color: #f0f2f8;
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.skill-description {
    margin-bottom: 12px;
    color: #777;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    padding: 8px;
    background-color: #f0f2f8;
    border-left: 3px solid var(--primary-color);
    border-radius: 3px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff6b6b, #ffa500, #ffd700, #4caf50);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.score-display {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #667eea;
    font-size: 18px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-generate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-pdf {
    background: #28a745;
    color: white;
}

.btn-pdf:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-reset {
    background: #6c757d;
    color: white;
}

.btn-reset:hover {
    background: #5a6268;
}

/* CV Preview Styles */
.cv-container {
    background: white;
    padding: 40px;
    border: 1px solid #ddd;
}

.cv-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.cv-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.cv-title {
    font-size: 16px;
    color: #667eea;
    margin-bottom: 15px;
}

.cv-contact {
    font-size: 12px;
    color: #666;
}

.cv-date {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

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

.cv-section-title {
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: #667eea;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.competence-item {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    border-left: 4px solid #667eea;
}

.empty-message {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

@media print {
    body {
        background: white;
    }
    .form-section {
        display: none;
    }
    .preview-section {
        max-height: none;
        padding: 0;
    }
    .container {
        max-width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
    }
    .button-group {
        display: none;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .form-section,
    .preview-section {
        max-height: none;
    }
}
