:root {
    --resume-teal: #00897b;
    --resume-dark: #2c3e50;
    --resume-text: #34495e;
}

.resume-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f4f7f6;
    padding: 20px;
}

/* Input Form Side */
.form-side {
    flex: 1;
    min-width: 320px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-height: 90vh;
    overflow-y: auto;
}

.input-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.input-section h3 {
    font-size: 16px;
    color: var(--resume-teal);
    margin-bottom: 12px;
}

.input-section input, .input-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.hint { font-size: 11px; color: #888; margin-top: -8px; margin-bottom: 10px; }

.download-btn {
    width: 100%;
    background: var(--resume-teal);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Resume Preview Side */
.preview-side {
    flex: 1.5;
    display: flex;
    justify-content: center;
    background: #e9ecef;
    padding: 20px;
    border-radius: 12px;
}

.a4-page {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 0;
}

/* ATS Professional Layout */
.resume-header {
    background: var(--resume-teal);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.photo-container img {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border: 2px solid white;
}

.header-text h1 { margin: 0; font-size: 26px; letter-spacing: 1px; }
.header-text p { margin: 5px 0 0; font-size: 13px; opacity: 0.9; }

.resume-body { padding: 30px; }

.resume-body section { margin-bottom: 20px; }

.resume-body h4 {
    border-bottom: 2px solid var(--resume-teal);
    color: var(--resume-teal);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.content-list, .sub-header {
    font-size: 13px;
    color: var(--resume-text);
    line-height: 1.6;
}

.sub-header { font-weight: bold; margin-bottom: 5px; }

/* Mobile Optimization */
@media (max-width: 1024px) {
    .preview-side {
        display: none; /* Mobile par preview hide kar sakte hain ya niche shift */
    }
    .form-side { flex: 100%; }
}