/* Resume Editor Styles */

/* CSS-Variablen für dynamische Abstände */
:root {
    --resume-section-gap: 24px;
    --resume-item-gap: 12px;
    --resume-paragraph-gap: 6px;
}

.resume-editor-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    padding-top: 80px; /* Platz für fixed navbar */
}

/* Dynamische Abstände aus Design-Editor */
.resume-preview-section {
    margin-bottom: var(--resume-section-gap, 24px) !important;
}

.resume-preview-item {
    margin-bottom: var(--resume-item-gap, 12px) !important;
}

.resume-preview-description p,
.resume-preview-item-description p {
    margin-bottom: var(--resume-paragraph-gap, 6px) !important;
}

/* Sidebar Resize Handle */
.sidebar-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: transparent;
    cursor: ew-resize;
    z-index: 100;
    transition: background 0.2s;
}

.sidebar-resize-handle:hover,
.sidebar-resize-handle.active {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
}

.design-sidebar {
    position: relative;
    transition: width 0.1s ease-out;
}

/* Zurück Button Navigation */
.resume-editor-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #e5e7eb;
    color: #1f2937;
}

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

/* Design Editor Button (Top) */
.btn-design-editor-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-design-editor-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-design-editor-top i {
    font-size: 1rem;
}

/* Speichern Button (Top) */
.btn-save-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-save-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-save-top i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .resume-editor-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .btn-design-editor-top,
    .btn-save-top {
        flex: 1;
        justify-content: center;
    }
}

.resume-editor-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resume-editor-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.resume-editor-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Tabs */
.resume-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.resume-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    transition: all 0.3s;
}

.resume-tab:hover {
    color: #3b82f6;
}

.resume-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.resume-tab-content {
    display: none;
}

.resume-tab-content.active {
    display: block;
}

/* Form Styles */
.resume-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.resume-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.resume-section:last-child {
    border-bottom: none;
}

.resume-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.resume-ai-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-results {
    display: grid;
    gap: 0.75rem;
}

.ai-result-card {
    min-height: 60px;
    padding: 0.75rem;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    color: #374151;
}

.form-hint {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.skills-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.skills-category h3 {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category-item,
.soft-skill-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.skill-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-category-name {
    font-weight: 600;
    color: #1f2937;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    min-width: 100px;
}

.skill-tag input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.achievement-item,
.metric-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: start;
}

.achievement-item input,
.metric-item input {
    flex: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-tag {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

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

.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Experience/Education Items */
.experience-item,
.education-item,
.language-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.item-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

.btn-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-remove:hover {
    background: #dc2626;
}

.btn-add {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add:hover {
    background: #2563eb;
}

/* Actions */
.resume-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-export-ats {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: white;
}

.btn-export-ats:hover {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Upload Section */
.upload-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.upload-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f9fafb;
}

.upload-dropzone:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.upload-dropzone i {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.upload-dropzone p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6b7280;
    font-size: 0.875rem;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: gradientMove 2s ease infinite;
    transition: width 0.3s ease;
    width: 0%;
    border-radius: 5px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#progressText {
    font-size: 0.95rem;
    color: #1e40af;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#progressText::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* OCR Results */
.ocr-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.ocr-results h3 {
    color: #16a34a;
    margin-bottom: 1rem;
}

.ocr-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ocr-raw,
.ocr-parsed {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.ocr-raw h4,
.ocr-parsed h4 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ocr-raw pre {
    white-space: pre-wrap;
    font-size: 0.875rem;
    color: #374151;
    max-height: 300px;
    overflow-y: auto;
}

.ocr-parsed-data {
    font-size: 0.875rem;
    color: #374151;
}

.ocr-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Aktuell Checkbox - näher am Eingabefeld */
.current-job-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-job-wrapper input[type="month"] {
    flex: 1;
}

.current-job-wrapper label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.current-job-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* Drag & Drop für Blöcke */
.draggable-item {
    cursor: grab;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-item:active {
    cursor: grabbing;
}

.draggable-item.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.drag-handle {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s;
    color: #6b7280;
}

.draggable-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background: #d1d5db;
}

.drag-placeholder {
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Container für Drag & Drop */
#experienceContainer,
#educationContainer,
#languagesContainer,
#projectsContainer,
#technicalSkillsContainer,
#softSkillsContainer {
    padding-left: 35px;
    margin-left: -35px;
}

/* Style Editor Button */
.btn-style-editor {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-style-editor:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Style Editor Modal */
.style-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.style-editor-modal.active {
    display: flex;
}

/* Resume Versions Modal */
.resume-versions-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.resume-versions-modal.active {
    display: flex;
}

.resume-versions-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.resume-versions-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resume-versions-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-versions-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 6px;
}

.resume-versions-close:hover {
    background: #f3f4f6;
}

.resume-versions-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.resume-versions-create {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.resume-versions-create input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.resume-versions-list {
    display: grid;
    gap: 0.75rem;
}

.resume-version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.resume-version-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.resume-version-title {
    font-weight: 600;
    color: #1f2937;
}

.resume-version-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.resume-version-actions {
    display: flex;
    gap: 0.5rem;
}

.resume-version-actions button {
    border: none;
    background: #e5e7eb;
    color: #1f2937;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.resume-version-actions button:hover {
    background: #d1d5db;
}

.resume-version-diff {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.85rem;
    color: #374151;
    max-height: 240px;
    overflow: auto;
}

.style-editor-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.style-editor-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style-editor-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.style-editor-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.style-editor-close:hover {
    background: #f3f4f6;
}

.style-editor-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.style-option-group {
    margin-bottom: 1.5rem;
}

.style-option-group h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.style-templates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.style-template {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.style-template:hover {
    border-color: #3b82f6;
}

.style-template.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.style-template-preview {
    height: 80px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.style-template-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.color-picker-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.color-picker-item {
    flex: 1;
}

.color-picker-item label {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.color-picker-item input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.font-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.style-editor-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* PDF Export Button */
.btn-export {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-export:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .ocr-preview {
        grid-template-columns: 1fr;
    }
    
    .resume-actions {
        flex-direction: column;
    }
    
    .resume-actions button {
        width: 100%;
    }
    
    .style-templates {
        grid-template-columns: 1fr;
    }
    
    .color-picker-row {
        flex-direction: column;
    }
    
    #experienceContainer,
    #educationContainer,
    #languagesContainer,
    #projectsContainer,
    #technicalSkillsContainer,
    #softSkillsContainer {
        padding-left: 0;
        margin-left: 0;
    }
    
    .drag-handle {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKILLS MIT BEWERTUNG - Form Inputs
   ═══════════════════════════════════════════════════════════════════════════ */

.skill-item-rated {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.skill-item-rated:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.skill-item-rated.soft {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fcd34d;
}

.skill-rated-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.skill-name-input {
    flex: 1;
    min-width: 150px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s;
}

.skill-name-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.skill-level-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.skill-level-control label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.skill-level-control input[type="range"] {
    width: 90px;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 3px;
    cursor: pointer;
}

.skill-level-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-level-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 40px;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.skill-category-input {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
}

.skill-category-input::placeholder {
    color: #9ca3af;
}

.skill-item-rated .btn-remove {
    padding: 0.4rem 0.6rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.skill-item-rated .btn-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.skill-item-rated textarea {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 40px;
}

