    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            display: flex;
            flex-wrap: wrap;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            gap: 20px;
        }

        header {
            background: linear-gradient(135deg, #3a7bd5, #00d2ff);
            color: white;
            text-align: center;
            padding: 2rem 1rem;
            width: 100%;
            margin-bottom: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        .form-section {
            flex: 1;
            min-width: 300px;
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .preview-section {
            flex: 1;
            min-width: 300px;
            background-color: white;
            padding: 25px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
        }

        h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #eaeaea;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
        }

        input, textarea, select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: #3a7bd5;
            box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2);
        }

        textarea {
            min-height: 100px;
            resize: vertical;
        }

        .btn {
            display: inline-block;
            padding: 12px 25px;
            background-color: #3a7bd5;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .btn:hover {
            background-color: #2c64b4;
            transform: translateY(-2px);
        }

        .btn-export {
            background-color: #00c853;
            margin-top: 15px;
            align-self: flex-start;
        }

        .btn-export:hover {
            background-color: #009624;
        }

        .section-toggle {
            background-color: #f1f8ff;
            border: none;
            text-align: left;
            padding: 15px;
            width: 100%;
            font-weight: 600;
            font-size: 18px;
            cursor: pointer;
            margin-bottom: 10px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-content {
            display: none;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .active {
            display: block;
        }

       .resume-preview {
    flex-grow: 1;
    padding: 20px;
    background: white;
    /* overflow-y: auto;  ❌ remove this */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Prevent items from breaking weirdly */
.resume-section, .experience-item, .education-item, .skill-item {
    page-break-inside: avoid;
}
        .resume-header {
            text-align: center;
            margin-bottom: 25px;
        }

        .resume-header h2 {
            font-size: 28px;
            color: #2c3e50;
            border: none;
            margin: 0;
            padding: 0;
        }

        .resume-header p {
            color: #7f8c8d;
            font-size: 18px;
        }

        .contact-info {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 25px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .resume-section {
            margin-bottom: 25px;
        }

        .resume-section h3 {
            color: #3a7bd5;
            font-size: 20px;
            padding-bottom: 8px;
            border-bottom: 2px solid #eaeaea;
            margin-bottom: 15px;
        }

        .experience-item, .education-item {
            margin-bottom: 20px;
        }

        .experience-item h4, .education-item h4 {
            font-size: 18px;
            color: #2c3e50;
        }

        .date-location {
            color: #7f8c8d;
            font-style: italic;
            margin-bottom: 8px;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .skill {
            background-color: #e3f2fd;
            color: #1976d2;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
        }

        .add-btn, .remove-btn {
            padding: 8px 15px;
            margin-top: 10px;
            background-color: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
        }

        .remove-btn {
            background-color: #ffebee;
            color: #d32f2f;
        }

        .add-btn:hover {
            background-color: #e0e0e0;
        }

        .remove-btn:hover {
            background-color: #ffcdd2;
        }

        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .contact-info {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            header h1 {
                font-size: 2rem;
            }
        }
        .page-break {
    page-break-before: always;
}