/* ========================================
   Warm Latte Creative Resume Template CSS
   Elegant Beige/Cream Design with Sidebar Layout
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #d4c4a8 0%, #c9b896 50%, #bfae84 100%);
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Main Container
   ======================================== */
.resume-builder-container {
    max-width: 1600px;
    width: 96vw;
    height: 94vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(139, 115, 85, 0.4);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 460px;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0e8 100%);
    padding: 35px 30px;
    overflow-y: auto;
    border-right: 4px solid #e8dcc8;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-section-title {
    font-size: 14px;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 18px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    color: white;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #5c4a3a;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e8dcc8;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a08060;
    box-shadow: 0 0 0 4px rgba(160, 128, 96, 0.15);
}

.form-group small {
    display: block;
    font-size: 11px;
    color: #8b7355;
    margin-top: 5px;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: linear-gradient(135deg, #f5f0e8 0%, #efe7d9 100%);
    padding: 18px;
    border-radius: 12px;
    border: 2px solid #e8dcc8;
    margin-bottom: 20px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #8b7355;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px;
}

.color-label {
    flex: 1;
    font-size: 13px;
    color: #5c4a3a;
    font-weight: 600;
}

.reset-color-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.reset-color-btn:hover {
    background: linear-gradient(135deg, #a08060 0%, #b89970 100%);
    transform: translateY(-2px);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 12px;
    border: 2px dashed #a08060;
    background: #faf8f5;
    cursor: pointer;
    border-radius: 10px;
}

.photo-upload-section input[type="file"]:hover {
    border-color: #8b7355;
    background: #f5f0e8;
}

/* ========================================
   Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 115, 85, 0.35);
}

.sample-data-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #6b7f5c 0%, #7d9468 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.sample-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 127, 92, 0.4);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px solid #e8dcc8;
}

/* ========================================
   Experience, Education, Competency Items
   ======================================== */
.experience-item,
.education-item,
.skill-item,
.award-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e8dcc8;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.05);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: linear-gradient(135deg, #f5f0e8 0%, #efe7d9 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #c9b896;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.btn-header-secondary,
.btn-header-success {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-header-secondary {
    background: #ef4444;
    color: white;
}

.btn-header-secondary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-header-success {
    background: #10b981;
    color: white;
}

.btn-header-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ========================================
   Preview Container
   ======================================== */
.preview-container {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-preview {
    width: 210mm;
    min-height: 297mm;
    background: white;
    box-shadow: 0 15px 50px rgba(139, 115, 85, 0.25);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* ========================================
   Resume Sidebar Section (NEW BEIGE DESIGN)
   ======================================== */
.resume-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #d4c4a8 0%, #c9b896 50%, #bfae84 100%);
    padding: 35px 25px;
    color: #2d2a26;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Profile Photo in Sidebar - Circular with Border */
.sidebar-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #f5f0e8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: white;
}

.sidebar-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #efe7d9 100%);
}

.sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-photo-placeholder {
    font-size: 70px;
    color: #a08060;
}

/* Sidebar Name & Title - Hidden on Sidebar (Shown on Main) */
.sidebar-header {
    display: none;
}

/* Sidebar Section Title */
.sidebar-section {
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    padding-top: 20px;
}

.sidebar-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.sidebar-section-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d2a26;
    border-bottom: 3px solid #2d2a26;
    padding-bottom: 10px;
}

.sidebar-icon {
    font-size: 16px;
    display: none;
}

/* Contact Info in Sidebar */
.sidebar-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #3d3a36;
    word-break: break-word;
    line-height: 1.5;
}

.sidebar-contact-item::before {
    content: '•';
    color: #2d2a26;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-icon {
    display: none;
}

/* Skills in Sidebar */
.sidebar-skills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-skill-item {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 500;
    color: #3d3a36;
    line-height: 1.5;
}

.sidebar-skill-item::before {
    content: '•';
    color: #2d2a26;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Awards in Sidebar */
.sidebar-awards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-award-item {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #3d3a36;
    line-height: 1.5;
}

.sidebar-award-item::before {
    content: '•';
    color: #2d2a26;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ========================================
   Resume Main Content Section
   ======================================== */
.resume-main {
    flex: 1;
    padding: 40px 35px;
    background: white;
}

/* Header Section - Name & Title */
.main-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8dcc8;
}

.main-name {
    font-size: 38px;
    font-weight: 900;
    color: #2d2a26;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-title {
    font-size: 15px;
    font-weight: 600;
    color: #5c4a3a;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 12px 0 0 0;
}

/* Summary Section */
.summary-section {
    margin-bottom: 30px;
}

.summary-content {
    font-size: 14px;
    line-height: 1.8;
    color: #4a4a4a;
    text-align: justify;
}

/* Section Styling */
.main-section {
    margin-bottom: 30px;
}

.main-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #2d2a26;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2d2a26;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-icon {
    font-size: 22px;
    display: none;
}

/* Education Section - Timeline Style */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.edu-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #8b7355;
    background: white;
    flex-shrink: 0;
    margin-top: 4px;
}

.edu-card-content {
    flex: 1;
}

.edu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.edu-card-institution {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0;
}

.edu-card-gpa {
    text-align: right;
}

.edu-card-gpa-value {
    font-size: 16px;
    font-weight: 800;
    color: #2d2a26;
}

.edu-card-gpa-label {
    font-size: 11px;
    color: #8b7355;
    display: block;
}

.edu-card-dates {
    font-size: 13px;
    color: #8b7355;
    margin: 0;
    font-style: italic;
}

.edu-card-degree {
    font-size: 14px;
    color: #5c4a3a;
    margin: 6px 0 0 0;
}

/* Experience Section - Timeline Style */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.exp-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #8b7355;
    background: white;
    flex-shrink: 0;
    margin-top: 4px;
}

.exp-card-content {
    flex: 1;
}

.exp-card-header {
    margin-bottom: 12px;
}

.exp-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-card-company {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0;
}

.exp-card-separator {
    color: #8b7355;
    font-weight: 400;
}

.exp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0;
}

.exp-card-dates {
    font-size: 13px;
    color: #8b7355;
    margin: 4px 0 0 0;
    font-style: italic;
}

.exp-card-achievements {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.exp-card-achievements li {
    font-size: 13px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 6px;
    text-align: justify;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f5f0e8;
}

.form-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b7355 0%, #a08060 100%);
    border-radius: 5px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a08060 0%, #b89970 100%);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

/* Large Tablets and Below (1200px) */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: auto;
        min-height: 95vh;
        flex-direction: column;
    }

    .form-section {
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 4px solid #e8dcc8;
    }

    .preview-section {
        width: 100%;
    }

    .resume-preview {
        width: 100%;
        min-height: auto;
        flex-direction: column;
    }

    .resume-sidebar {
        width: 100%;
        padding: 30px;
    }

    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .preview-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets (768px) */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        overflow: visible !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    .resume-builder-container {
        border-radius: 12px;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-height: auto;
    }

    .form-section {
        padding: 20px 18px;
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .preview-section {
        max-height: none !important;
        height: auto !important;
        overflow-y: visible;
    }

    .form-section h2 {
        font-size: 22px;
    }

    .form-section-title {
        font-size: 12px;
        padding: 10px 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .preview-container {
        padding: 15px;
    }

    .resume-sidebar {
        padding: 25px 20px;
    }

    .sidebar-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .main-name {
        font-size: 28px;
    }

    .main-title {
        font-size: 13px;
    }

    .resume-main {
        padding: 25px 20px;
    }

    .main-section-title {
        font-size: 17px;
    }

    .exp-card-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .exp-card-separator {
        display: none;
    }

    .preview-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
    }
}

/* Small Mobile (480px) */
@media screen and (max-width: 480px) {
    .form-section h2 {
        font-size: 20px;
    }

    .sidebar-photo-wrapper {
        width: 120px;
        height: 120px;
    }

    .main-name {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .main-title {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .resume-sidebar {
        padding: 20px 15px;
    }

    .resume-main {
        padding: 20px 15px;
    }

    .main-section-title {
        font-size: 15px;
    }

    .sidebar-contact-item {
        font-size: 12px;
    }

    .sidebar-skill-item {
        font-size: 12px;
    }

    .experience-card {
        gap: 10px;
    }

    .education-card {
        gap: 10px;
    }

    .exp-card-company,
    .exp-card-title {
        font-size: 14px;
    }

    .summary-content {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        border-radius: 0;
        height: auto;
    }

    .form-section,
    .preview-header {
        display: none;
    }

    .preview-section {
        width: 100%;
    }

    .preview-container {
        padding: 0;
    }

    .resume-preview {
        box-shadow: none;
        border-radius: 0;
        flex-direction: row;
    }
}
