/* ==============================================
   RESUME BUILDER — Premium UI
   ============================================== */

/* ---- Layout ---- */
.generator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: calc(100vh - 140px);
}

/* ---- Left: Form Panel ---- */
.input-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

.input-panel::-webkit-scrollbar {
    width: 5px;
}

.input-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* ---- Right: Preview Panel ---- */
.preview-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ---- Section Labels ---- */
.input-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.input-label i {
    color: #0085FF;
    font-size: 0.85rem;
}

/* ---- Input Fields ---- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group input,
.input-group textarea,
.resume-entry input,
.resume-entry textarea,
.resume-section input {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group textarea:focus,
.resume-entry input:focus,
.resume-entry textarea:focus,
.resume-section input:focus {
    border-color: #0085FF;
    box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.12);
    background: #ffffff;
}

.input-group input::placeholder,
.input-group textarea::placeholder,
.resume-entry input::placeholder,
.resume-entry textarea::placeholder,
.resume-section input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ---- Resume Sections ---- */
.resume-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.resume-section:hover {
    border-color: rgba(0, 133, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 133, 255, 0.04);
}

/* ---- Repeatable Entries ---- */
.resume-entry {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-entry:hover {
    border-color: #0085FF;
    box-shadow: 0 4px 12px rgba(0, 133, 255, 0.08);
    background: #ffffff;
}

.resume-entry input,
.resume-entry textarea {
    background: #ffffff;
    border-color: #e2e8f0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.entry-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0085FF;
    background: rgba(0, 133, 255, 0.08);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.add-entry-btn {
    background: linear-gradient(135deg, rgba(0, 133, 255, 0.08), rgba(0, 133, 255, 0.15));
    color: #0085FF;
    border: 1px solid rgba(0, 133, 255, 0.2);
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.add-entry-btn:hover {
    background: linear-gradient(135deg, #0085FF, #005099);
    color: #ffffff;
    border-color: #0085FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 133, 255, 0.25);
}

.remove-entry-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.remove-entry-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* ---- Resume Preview Paper ---- */
.resume-preview-paper {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.06) transparent;
}

.resume-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
    text-align: center;
    opacity: 0.7;
}

/* ---- Rendered Resume Styles ---- */
.rv-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2.5px solid #0085FF;
}

.rv-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

.rv-title {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.rv-contact {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.8;
}

.rv-contact a {
    color: #0085FF;
    text-decoration: none;
    font-weight: 500;
}

.rv-section {
    margin-bottom: 1rem;
}

.rv-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0085FF;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 0.6rem;
    font-family: 'Outfit', sans-serif;
}

.rv-summary {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.65;
}

.rv-entry {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.rv-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rv-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.rv-entry-header strong {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 700;
}

.rv-date {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    font-weight: 500;
}

.rv-company {
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 3px;
    font-weight: 500;
}

.rv-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.55;
}

.rv-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rv-skill {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #334155;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* ---- Action Bar ---- */
.action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.action-bar .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 133, 255, 0.3);
}

.action-bar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 133, 255, 0.4);
}

/* ---- Responsive ---- */
@media(max-width: 900px) {
    .generator-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .preview-panel {
        min-height: 500px;
    }

    .input-panel {
        padding-right: 0;
    }
}