/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    color: #333;
}

/* Main container */
.main-container {
    display: flex;
    flex-direction: column;
    margin: 20px;
}

@media (min-width: 768px) {
    .main-container {
        flex-direction: row;
    }
}

/* Form section */
.form-section {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .form-section {
        margin-right: 20px;
        margin-bottom: 0;
    }
}

.form-section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #1a202c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1em;
}

.select2-container {
    width: 100% !important;
}

.add-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #4299e1;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.add-btn:hover {
    background-color: #3182ce;
}

.action-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #38a169;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.action-btn:hover {
    background-color: #2f855a;
}

/* Preview section */
.preview-section {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

#previewContent {
    font-size: 1em;
    line-height: 1.6;
}

/* Resume preview styling */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.resume-header h1 {
    font-size: 1.8em;
    color: #1a202c;
}

.resume-header p {
    font-size: 1em;
    color: #4a5568;
}

.resume-header .contact-details {
    text-align: right;
}

.resume-summary,
.resume-experience,
.resume-education,
.resume-skills,
.resume-additional {
    margin-bottom: 20px;
}

.resume-summary h2,
.resume-experience h2,
.resume-education h2,
.resume-skills h2,
.resume-additional h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #2d3748;
}

.resume-experience .job,
.resume-education .education-item {
    margin-bottom: 10px;
}

.resume-experience .job h3,
.resume-education .education-item h3 {
    font-size: 1.2em;
    color: #2d3748;
}

.resume-experience .job p,
.resume-education .education-item p {
    font-size: 1em;
    color: #718096;
}

.resume-experience .job ul,
.resume-additional ul {
    list-style-type: disc;
    padding-left: 20px;
}

.resume-skills ul {
    list-style-type: square;
    padding-left: 20px;
}

.resume-skills ul li,
.resume-additional ul li {
    margin-bottom: 5px;
    color: #4a5568;
}
