/* Card-based design for Resume Parser - Enhanced */

.resume-parser-container {

    max-width: 1200px;

    margin: 2em auto;

    padding: 0 1em;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    position: relative;

}



/* Add a subtle background pattern */

.resume-parser-container::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: 

        radial-gradient(circle at 25% 25%, #3b82f6 0, transparent 50%),

        radial-gradient(circle at 75% 75%, #06b6d4 0, transparent 50%);

    opacity: 0.03;

    pointer-events: none;

    z-index: -1;

}



.resume-cards {

    grid-template-columns: 1fr 1fr;

    gap: 2em;

    align-items: start;

    position: relative;

    z-index: 1;

}



@media (max-width: 768px) {

    .resume-cards {

        grid-template-columns: 1fr;

        gap: 1.5em;

    }

}



/* Enhanced Card styles */

.resume-card {

    background: #fff;

    border-radius: 16px;

    box-shadow: 

        0 4px 6px rgba(0, 0, 0, 0.05), 

        0 1px 3px rgba(0, 0, 0, 0.1),

        0 0 0 1px rgba(255, 255, 255, 0.05);

    padding: 2.5em;

    border: 1px solid #e1e5e9;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

    overflow: hidden;

    backdrop-filter: blur(10px);

}



.resume-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    height: 4px;

    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);

    opacity: 0;

    transition: opacity 0.3s ease;

}



.resume-card:hover {

    box-shadow: 

        0 20px 25px -5px rgba(0, 0, 0, 0.15), 

        0 10px 10px -5px rgba(0, 0, 0, 0.1),

        0 0 0 1px rgba(59, 130, 246, 0.1);

    transform: translateY(-8px) scale(1.02);

}



.resume-card:hover::before {

    opacity: 1;

}



.card-header {

    margin-bottom: 2em;

    padding-bottom: 1.5em;

    border-bottom: 2px solid #f1f3f4;

    position: relative;

}



.card-header::after {

    content: '';

    position: absolute;

    bottom: -2px;

    left: 0;

    width: 60px;

    height: 2px;

    background: linear-gradient(90deg, #3b82f6, #06b6d4);

    border-radius: 1px;

    transition: width 0.3s ease;

}



.resume-card:hover .card-header::after {

    width: 120px;

}



.card-title {

    font-size: 2em;

    font-weight: 700;

    color: #1a1a1a;

    margin: 18px 10px;

    display: flex;

    align-items: center;

    gap: 0.75em;

    letter-spacing: -0.025em;

}



.card-title .upload-icon {

    font-size: 1.3em;

    background: linear-gradient(135deg, #3b82f6, #06b6d4);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    transition: transform 0.3s ease;

}



.resume-card:hover .card-title .upload-icon {

    transform: scale(1.1) rotate(5deg);

}



.card-subtitle {

    font-size: 0.95em;

    color: #6b7280;

    margin: 0.75em 0 0 0;

    line-height: 1.6;

}



/* Enhanced Drag and drop upload area */

.upload-container {

    max-width: 28rem;

    margin: 0 auto;

    border-radius: 1rem;

    overflow: hidden;

    position: relative;

}



@media (min-width: 768px) {

    .upload-container {

        max-width: 36rem;

    }

}



.upload-wrapper {

    width: 100%;

    padding: 1rem;

}



.upload-area {

    position: relative;

    height: 100%;

    padding: inherit;

    border-radius: 1rem;

    border: 3px dashed #3b82f6;

    background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);

    display: flex;

    justify-content: center;

    align-items: center;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;

    overflow: hidden;

}



.upload-area::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));

    opacity: 0;

    transition: opacity 0.3s ease;

}



.upload-area:hover {

    border-color: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 

        0 20px 25px -5px rgba(59, 130, 246, 0.15),

        0 10px 10px -5px rgba(59, 130, 246, 0.1);

}



.upload-area:hover::before {

    opacity: 1;

}



.upload-area.drag-over {

    border-color: #10b981;

    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);

    transform: scale(1.02);

    box-shadow: 

        0 25px 50px -12px rgba(16, 185, 129, 0.25),

        0 20px 25px -5px rgba(16, 185, 129, 0.1);

}



.upload-area.file-selected {

    border-color: #10b981;

    border-style: solid;

    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);

}



.upload-content {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    pointer-events: none;

    z-index: 2;

    transition: transform 0.3s ease;

}



.upload-area:hover .upload-content {

    transform: translateY(-4px);

}



.upload-icon {

    width: 72px;

    height: 72px;

    transition: transform 0.3s ease;

    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));

}



.upload-area:hover .upload-icon {

    transform: scale(1.1) rotate(5deg);

}



.upload-text {

    display: block;

    color: #374151;

    font-weight: 700;

    font-size: 1.125rem;

    text-align: center;

    margin-bottom: 0.5rem;

    background: linear-gradient(135deg, #3b82f6, #06b6d4);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    transition: all 0.3s ease;

}



.upload-subtext {

    display: block;

    color: #6b7280;

    font-size: 0.875rem;

    text-align: center;

    font-weight: 500;

}



.file-types {

    display: flex;

    gap: 0.5rem;

    margin-top: 1rem;

    justify-content: center;

}



.file-type-badge {

    background: #e5e7eb;

    color: #374151;

    padding: 0.25em 0.75em;

    border-radius: 20px;

    font-size: 0.8em;

    font-weight: 500;

}



/* File selected state */

.upload-area.file-selected {

    border-color: #10b981;

    background-color: #ecfdf5;

}



.upload-area.file-selected .upload-text {

    color: #065f46;

    font-weight: 600;

}



.upload-area.file-selected .upload-subtext {

    color: #047857;

}



/* Hidden file input */

#resume-file {

    height: 100%;

    width: 100%;

    opacity: 0;

    cursor: pointer;

    position: absolute;

    top: 0;

    left: 0;

}



/* Upload container success state */

.upload-container.success-state {

    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);

    border-radius: 12px;

    padding: 1rem;

    border: 2px solid #10b981;

    position: relative;

}



.upload-container.success-state::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);

    pointer-events: none;

    animation: shimmer 2s ease-in-out infinite;

}



@keyframes shimmer {

    0% { transform: translateX(-100%); }

    100% { transform: translateX(100%); }

}



.upload-container.success-state .upload-area {

    border-color: #10b981;

    border-style: solid;

    background: rgba(255, 255, 255, 0.8);

}



.upload-container.success-state .upload-icon {

    color: #059669;

}



.upload-container.success-state .upload-text {

    color: #065f46;

}



.upload-container.success-state .upload-subtext {

    color: #047857;

}



/* Enhanced Upload button */

.upload-button {

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: white;

    border: none;

    margin: 18px 0;

    padding: 1rem 2rem;

    border-radius: 12px;

    font-weight: 700;

    font-size: 1rem;

    cursor: pointer;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow: 

        0 4px 6px rgba(59, 130, 246, 0.3),

        0 1px 3px rgba(0, 0, 0, 0.1);

    position: relative;

    overflow: hidden;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



.upload-button::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);

    transition: left 0.6s ease;

}



.upload-button:hover {

    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);

    transform: translateY(-3px) scale(1.05);

    box-shadow: 

        0 8px 15px rgba(59, 130, 246, 0.4),

        0 3px 6px rgba(0, 0, 0, 0.1);

}



.upload-button:hover::before {

    left: 100%;

}



.upload-button:active {

    transform: translateY(-1px) scale(1.02);

}



.upload-button:disabled {

    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);

    cursor: not-allowed;

    transform: none;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



.upload-button:disabled::before {

    display: none;

}



/* Enhanced visual feedback and animations */

.form-input:invalid {

    border-color: #ef4444;

    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);

}



.form-input:valid {

    border-color: #10b981;

}



.form-group.required .form-label::after {

    content: " *";

    color: #ef4444;

}



/* Progress completion animations */

.form-step-indicator .step-dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: #10b981;

    position: relative;

    animation: pulse 2s infinite;

}



@keyframes pulse {

    0% {

        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);

    }

    70% {

        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);

    }

    100% {

        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);

    }

}



/* Form section completion indicators */

.form-section.completed::before {

    content: "✓";

    position: absolute;

    top: 0;

    right: 0;

    background: #10b981;

    color: white;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    font-size: 12px;

    text-align: center;

    line-height: 20px;

    font-weight: bold;

}



.form-section {

    position: relative;

}



/* Loading states for buttons */

.btn-primary.loading {

    position: relative;

    color: transparent;

}



.btn-primary.loading::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    width: 16px;

    height: 16px;

    margin: -8px 0 0 -8px;

    border: 2px solid transparent;

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 1s linear infinite;

}



@keyframes spin {

    0% { transform: rotate(0deg); }

    100% { transform: rotate(360deg); }

}



/* Success state animations */

.form-success {

    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);

    border: 2px solid #10b981;

    border-radius: 12px;

    padding: 2em;

    text-align: center;

    animation: successBounce 0.6s ease-out;

}



@keyframes successBounce {

    0% {

        opacity: 0;

        transform: scale(0.3);

    }

    50% {

        opacity: 1;

        transform: scale(1.05);

    }

    70% {

        transform: scale(0.9);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

}



/* Auto-save indicator */

.auto-save-indicator {

    position: fixed;

    top: 20px;

    right: 20px;

    background: rgba(59, 130, 246, 0.9);

    color: white;

    padding: 0.5em 1em;

    border-radius: 20px;

    font-size: 0.8em;

    opacity: 0;

    transform: translateY(-20px);

    transition: all 0.3s ease;

    z-index: 1000;

}



.auto-save-indicator.show {

    opacity: 1;

    transform: translateY(0);

}



/* Resume form card (second card) */

.resume-form {

    display: none;

}



.resume-form.show {

    display: block;

}



.form-section {

    margin-bottom: 2em;

}



.section-title {

    font-size: 1.1em;

    font-weight: 600;

    color: #374151;

    margin-bottom: 1em;

    padding-bottom: 0.5em;

    border-bottom: 1px solid #e5e7eb;

}



.form-row {

    display: grid;

    grid-template-columns: 1fr;

    gap: 1em;

    margin-bottom: 1em;

}



.form-row.two-cols {

    grid-template-columns: 1fr 1fr;

}



@media (max-width: 768px) {

    .form-row.two-cols {

        grid-template-columns: 1fr;

    }

}



.form-group {

    display: flex;

    flex-direction: column;

}



.form-label {

    font-size: 0.9em;

    font-weight: 500;

    color: #374151;

    margin-bottom: 0.5em;

}



.form-input {

    padding: 0.75em;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    font-size: 0.9em;

    transition: border-color 0.3s ease;

}



.form-input:focus {

    outline: none;

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

}



.form-textarea {

    min-height: 80px;

    resize: vertical;

}



/* Skills display */

.skills-container {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5em;

    margin-top: 0.5em;

}



.skill-tag {

    background: #eff6ff;

    color: #1e40af;

    padding: 0.25em 0.75em;

    border-radius: 20px;

    font-size: 0.8em;

    border: 1px solid #bfdbfe;

}



/* Education and experience lists */

.list-item {

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 6px;

    padding: 1em;

    margin-bottom: 0.75em;

}



.item-title {

    font-weight: 600;

    color: #1f2937;

    margin-bottom: 0.25em;

}



.item-subtitle {

    color: #6b7280;

    font-size: 0.9em;

    margin-bottom: 0.5em;

}



.item-description {

    color: #4b5563;

    font-size: 0.9em;

    line-height: 1.5;

}



/* Enhanced Experience and Education Items */

.experience-item, .education-item {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    padding: 1rem;

    margin-bottom: 1rem;

    position: relative;

    transition: all 0.2s ease;

}



.experience-item:hover, .education-item:hover {

    border-color: #cbd5e1;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}



.exp-header, .edu-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 0.5rem;

}



.exp-position, .edu-degree {

    font-weight: 600;

    color: #1f2937;

    min-height: 1.5rem;

    padding: 0.25rem;

    border-radius: 4px;

    flex: 1;

    outline: none;

    border: none;

    background: transparent;

}



.exp-position:focus, .edu-degree:focus,

.exp-company:focus, .exp-duration:focus, .exp-description:focus,

.edu-institution:focus, .edu-year:focus, .edu-details:focus {

    background: white;

    outline: 2px solid #3b82f6;

    outline-offset: -2px;

}



.exp-company-duration, .edu-institution-year {

    color: #6b7280;

    font-size: 0.875rem;

    margin-bottom: 0.5rem;

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 0.25rem;

}



.exp-company, .exp-duration, .edu-institution, .edu-year {

    padding: 0.25rem;

    border-radius: 4px;

    outline: none;

    border: none;

    background: transparent;

    min-width: 50px;

}



.exp-separator, .edu-separator {

    margin: 0 0.5rem;

    color: #9ca3af;

}



.exp-description, .edu-details {

    color: #4b5563;

    line-height: 1.5;

    min-height: 2rem;

    padding: 0.25rem;

    border-radius: 4px;

    outline: none;

    border: none;

    background: transparent;

}



/* Placeholder styles for contenteditable elements */

.exp-position.placeholder, .edu-degree.placeholder,

.exp-company.placeholder, .exp-duration.placeholder, .exp-description.placeholder,

.edu-institution.placeholder, .edu-year.placeholder, .edu-details.placeholder {

    color: #9ca3af;

    font-style: italic;

}



.exp-position.placeholder:focus, .edu-degree.placeholder:focus,

.exp-company.placeholder:focus, .exp-duration.placeholder:focus, .exp-description.placeholder:focus,

.edu-institution.placeholder:focus, .edu-year.placeholder:focus, .edu-details.placeholder:focus {

    color: #1f2937;

    font-style: normal;

}



/* Remove item button */

.remove-item {

    background: #fee2e2;

    color: #dc2626;

    border: 1px solid #fecaca;

    border-radius: 50%;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    font-size: 0.75rem;

    font-weight: bold;

    transition: all 0.2s ease;

    flex-shrink: 0;

}



.remove-item:hover {

    background: #fecaca;

    border-color: #f87171;

    transform: scale(1.1);

}



.remove-item:active {

    transform: scale(0.95);

}



/* Enhanced contenteditable focus states */

[contenteditable="true"]:focus {

    background: rgba(59, 130, 246, 0.05);

    border: 1px solid #3b82f6;

    outline: none;

}



[contenteditable="true"]:empty:before {

    content: attr(data-placeholder);

    color: #9ca3af;

    font-style: italic;

}



/* Skills container enhancements */

.skills-container {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

    margin-top: 0.5rem;

}



.skill-tag {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    background: #eff6ff;

    color: #1e40af;

    padding: 0.375rem 0.75rem;

    border-radius: 20px;

    font-size: 0.875rem;

    border: 1px solid #bfdbfe;

    transition: all 0.2s ease;

}



.skill-tag:hover {

    background: #dbeafe;

    border-color: #93c5fd;

}



.remove-skill {

    cursor: pointer;

    color: #ef4444;

    font-weight: bold;

    margin-left: 0.25rem;

    transition: color 0.2s ease;

}



.remove-skill:hover {

    color: #dc2626;

}



/* Add item buttons */

.btn-add-item {

    background: linear-gradient(135deg, #10b981 0%, #059669 100%);

    color: white;

    border: none;

    border-radius: 8px;

    padding: 0.5rem 1rem;

    cursor: pointer;

    font-size: 0.875rem;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 0.375rem;

    transition: all 0.2s;

    margin-top: 0.5rem;

}



.btn-add-item:hover {

    background: linear-gradient(135deg, #059669 0%, #047857 100%);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);

}



.btn-add-item:active {

    transform: translateY(0);

}



/* Section headers */

.section-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1rem;

}



.section-title {

    font-size: 1.125rem;

    font-weight: 600;

    color: #1f2937;

    margin: 0;

}



/* Experience and Education containers */

.experience-container, .education-container {

    min-height: 2rem;

}



.experience-container:empty:after, .education-container:empty:after {

    content: "No items added yet. Click the add button above to get started.";

    color: #9ca3af;

    font-style: italic;

    text-align: center;

    display: block;

    padding: 2rem;

    background: #f9fafb;

    border: 2px dashed #d1d5db;

    border-radius: 8px;

}



/* Mobile responsiveness for experience/education items */

@media (max-width: 768px) {

    .experience-item, .education-item {

        padding: 0.75rem;

    }

    

    .exp-header, .edu-header {

        flex-direction: column;

        align-items: stretch;

        gap: 0.5rem;

    }

    

    .remove-item {

        align-self: flex-end;

        margin-top: -0.5rem;

    }

    

    .exp-company-duration, .edu-institution-year {

        flex-direction: column;

        align-items: flex-start;

        gap: 0.25rem;

    }

    

    .exp-separator, .edu-separator {

        display: none;

    }

}



@media (max-width: 480px) {

    .experience-item, .education-item {

        padding: 0.5rem;

        margin-bottom: 0.75rem;

    }

    

    .exp-position, .edu-degree {

        font-size: 0.9rem;

    }

    

    .exp-company-duration, .edu-institution-year {

        font-size: 0.8rem;

    }

    

    .exp-description, .edu-details {

        font-size: 0.875rem;

    }

}



/* Touch-friendly improvements */

@media (hover: none) and (pointer: coarse) {

    .upload-area {

        min-height: 10rem;

    }

    

    .upload-button {

        min-height: 44px;

        padding: 0.875em 1.5em;

    }

    

    .form-input {

        min-height: 40px;

    }

    

    .skill-tag {

        min-height: 28px;

        display: inline-flex;

        align-items: center;

    }

}



/* Landscape mobile optimization */

@media (max-width: 768px) and (orientation: landscape) {

    .upload-area {

        height: 8rem;

    }

    

    .upload-icon {

        width: 40px;

        height: 40px;

    }

}



/* Print styles */

@media print {

    .resume-parser-container {

        max-width: 100%;

        margin: 0;

        padding: 0;

    }

    

    .resume-cards {

        grid-template-columns: 1fr;

        gap: 1em;

    }

    

    .resume-card {

        box-shadow: none;

        border: 1px solid #ccc;

        page-break-inside: avoid;

    }

    

    .upload-button,

    .progress-container,

    .upload-status {

        display: none;

    }

}



/* Form transition states - Single card layout */

.resume-parser-container.single-card .resume-cards {

    grid-template-columns: 1fr;

    max-width: 800px;

    margin: 0 auto;

}



.resume-card.form-mode {

    min-height: auto;

    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

}



.resume_card.form_mode .card_header {

    margin-bottom: 2em;

}



.resume_card.form_mode .card_title .upload_icon {

    transform: none;

}



/* Upload container in form mode */

.upload-container.form-mode {

    display: none;

}



/* Form container */

.form-container {

    display: none;

    opacity: 0;

    transform: translateY(20px);

    transition: all 0.4s ease-out;

}



.form-container.show {

    display: block;

    opacity: 1;

    transform: translateY(0);

}



/* Form sections styling */

.parsed-data-form {

    max-width: 100%;

}



.form-navigation {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 2em;

    padding: 1em 0;

    border-bottom: 2px solid #f1f3f4;

}



.form-step-indicator {

    display: flex;

    gap: 0.5em;

    align-items: center;

}



.step-dot {

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: #d1d5db;

    transition: background 0.3s ease;

}



.step-dot.active {

    background: #3b82f6;

}



.step-dot.completed {

    background: #10b981;

}



.form-actions {

    display: flex;

    gap: 1em;

    justify-content: flex-end;

    margin-top: 2em;

    padding-top: 1.5em;

    border-top: 1px solid #e5e7eb;

}



.btn-secondary {

    background: #6b7280;

    color: white;

    border: none;

    padding: 0.75em 1.5em;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

}



.btn-secondary:hover {

    background: #4b5563;

    transform: translateY(-1px);

}



.btn-primary {

    background: linear-gradient(135deg, #10b981 0%, #059669 100%);

    color: white;

    border: none;

    padding: 0.75em 1.5em;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);

}



.btn-primary:hover {

    background: linear-gradient(135deg, #059669 0%, #047857 100%);

    transform: translateY(-1px);

    box-shadow: 0 6px 8px rgba(16, 185, 129, 0.4);

}



/* ========================================

   RESUME RESULTS CONTAINER STYLES

   ======================================== */



/* Main results container */

.resume-results {

    max-width: 1200px;

    margin: 2rem auto 0;

    padding: 0 1rem;

    background: #ffffff;

    border-radius: 16px;

    box-shadow: 

        0 4px 6px rgba(0, 0, 0, 0.05), 

        0 1px 3px rgba(0, 0, 0, 0.1),

        0 0 0 1px rgba(255, 255, 255, 0.05);

    border: 1px solid #e1e5e9;

    animation: slideInUp 0.5s ease-out;

}



@keyframes slideInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* Results header */

.results-header {

    text-align: center;

    padding: 2rem 2rem 1rem;

    border-bottom: 1px solid #e5e7eb;

    margin-bottom: 2rem;

}



.results-header h3 {

    font-size: 1.875rem;

    font-weight: 700;

    color: #1f2937;

    margin: 0 0 0.5rem;

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.results-header p {

    font-size: 1rem;

    color: #6b7280;

    margin: 0;

    font-weight: 400;

}



/* Results sections container */

.results-sections {

    padding: 0 2rem 2rem;

}



/* Individual result section */

.result-section {

    margin-bottom: 2.5rem;

    background: #f8fafc;

    border-radius: 12px;

    padding: 1.5rem;

    border: 1px solid #e2e8f0;

    transition: all 0.3s ease;

}



.result-section:hover {

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    border-color: #cbd5e1;

}



.result-section:last-child {

    margin-bottom: 0;

}



.result-section h4 {

    font-size: 1.25rem;

    font-weight: 600;

    color: #1e293b;

    margin: 0 0 1.5rem;

    display: flex;

    align-items: center;

    gap: 0.5rem;

    padding-bottom: 0.75rem;

    border-bottom: 2px solid #e2e8f0;

}



/* Form grid for input fields */

.form-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 1rem;

}



.form-field {

    display: flex;

    flex-direction: column;

}



.form-field.full-width {

    grid-column: 1 / -1;

}



.form-field label {

    font-size: 0.875rem;

    font-weight: 600;

    color: #374151;

    margin-bottom: 0.5rem;

    display: block;

}



.editable-field {

    padding: 0.75rem;

    border: 2px solid #d1d5db;

    border-radius: 8px;

    font-size: 0.875rem;

    color: #1f2937;

    background: #ffffff;

    transition: all 0.2s ease;

    font-family: inherit;

    resize: vertical;

}



.editable-field:focus {

    outline: none;

    border-color: #3b82f6;

    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);

    background: #fefefe;

}



.editable-field:hover {

    border-color: #9ca3af;

}



/* Skills container */

.skills-container {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

    margin-bottom: 1rem;

    min-height: 2.5rem;

    padding: 0.75rem;

    background: #ffffff;

    border: 2px dashed #d1d5db;

    border-radius: 8px;

    transition: all 0.2s ease;

}



.skills-container:hover {

    border-color: #9ca3af;

}



.skill-tag {

    display: inline-flex;

    align-items: center;

    gap: 0.375rem;

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: white;

    padding: 0.375rem 0.75rem;

    border-radius: 20px;

    font-size: 0.875rem;

    font-weight: 500;

    animation: scaleIn 0.2s ease-out;

}



@keyframes scaleIn {

    from {

        opacity: 0;

        transform: scale(0.8);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}



.skill-text {

    line-height: 1;

}



.remove-skill {

    background: none;

    border: none;

    color: rgba(255, 255, 255, 0.8);

    font-size: 1rem;

    font-weight: bold;

    cursor: pointer;

    padding: 0;

    margin: 0;

    line-height: 1;

    transition: color 0.2s ease;

}



.remove-skill:hover {

    color: #fef2f2;

    background: rgba(239, 68, 68, 0.2);

    border-radius: 50%;

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

}



/* Experience and Education items */

.experience-container,

.education-container {

    background: #ffffff;

    border: 2px solid #e5e7eb;

    border-radius: 8px;

    padding: 1rem;

    margin-bottom: 1rem;

}



.experience-item,

.education-item {

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 1.5rem;

    margin-bottom: 1rem;

    transition: all 0.2s ease;

}



.experience-item:last-child,

.education-item:last-child {

    margin-bottom: 0;

}



.experience-item:hover,

.education-item:hover {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    border-color: #cbd5e1;

}



.item-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1rem;

    padding-bottom: 0.75rem;

    border-bottom: 1px solid #e5e7eb;

}



.item-header h5 {

    font-size: 1rem;

    font-weight: 600;

    color: #1f2937;

    margin: 0;

}



.btn-remove {

    background: #ef4444;

    color: white;

    border: none;

    border-radius: 6px;

    padding: 0.375rem 0.75rem;

    font-size: 0.75rem;

    font-weight: 500;

    cursor: pointer;

    transition: all 0.2s ease;

}



.btn-remove:hover {

    background: #dc2626;

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);

}



/* Add buttons */

.add-skill-btn,

.add-experience-btn,

.add-education-btn {

    background: linear-gradient(135deg, #10b981 0%, #059669 100%);

    color: white;

    border: none;

    border-radius: 8px;

    padding: 0.75rem 1.5rem;

    font-size: 0.875rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

}



.add-skill-btn:hover,

.add-experience-btn:hover,

.add-education-btn:hover {

    background: linear-gradient(135deg, #059669 0%, #047857 100%);

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);

}



/* Results actions */

.results-actions {

    display: flex;

    gap: 1rem;

    justify-content: center;

    margin-top: 2rem;

    padding-top: 2rem;

    border-top: 2px solid #e5e7eb;

}



.save-resume-btn {

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: white;

    border: none;

    border-radius: 12px;

    padding: 0.875rem 2rem;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



.save-resume-btn:hover {

    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);

}



.start-over-btn {

    background: #6b7280;

    color: white;

    border: none;

    border-radius: 12px;

    padding: 0.875rem 2rem;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

}



.start-over-btn:hover {

    background: #4b5563;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);

}



/* Empty state */

.empty-state {

    text-align: center;

    color: #9ca3af;

    font-style: italic;

    padding: 2rem;

    background: #f9fafb;

    border: 2px dashed #d1d5db;

    border-radius: 8px;

    margin-bottom: 1rem;

}



/* Button secondary style */

.btn-secondary {

    background: #f3f4f6;

    color: #374151;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    padding: 0.75rem 1.5rem;

    font-size: 0.875rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

}



.btn-secondary:hover {

    background: #e5e7eb;

    border-color: #9ca3af;

    transform: translateY(-1px);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

}



.btn-primary {

    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

    color: white;

    border: none;

    border-radius: 8px;

    padding: 0.75rem 1.5rem;

    font-size: 0.875rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

}



.btn-primary:hover {

    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



/* Status Messages */
.resume-parser-status {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.resume-parser-status.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.resume-parser-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.resume-parser-status.warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.resume-parser-status.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.resume-parser-status .status-icon::before {
    content: '✓';
    font-weight: bold;
}

.resume-parser-status.error .status-icon::before {
    content: '✗';
}

.resume-parser-status.warning .status-icon::before {
    content: '⚠';
}

.resume-parser-status.info .status-icon::before {
    content: 'ℹ';
}

