body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #1e1e2e;
    color: #e0e0e0;
}
.container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: auto;
}
.form-section, .preview-section {
    flex: 1;
    background: #2a2a3e;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
h1 {
    color: #60a5fa;
    text-align: center;
    margin-bottom: 20px;
}
h2 {
    color: #93c5fd;
    border-bottom: 2px solid #60a5fa;
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 20px;
    position: relative;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
}
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #44475a;
    border-radius: 6px;
    background: #3b3b54;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
    min-height: 80px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.add-btn, .ai-suggest-btn, .remove-btn, .image-upload-btn, .image-adjust-btn, .image-bg-remove-btn {
    background-color: #60a5fa;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s;
}
.remove-btn {
    background-color: #ef4444;
}
.add-btn:hover, .ai-suggest-btn:hover, .image-upload-btn:hover, .image-adjust-btn:hover, .image-bg-remove-btn:hover {
    background-color: #3b82f6;
}
.remove-btn:hover {
    background-color: #b91c1c;
}
.entry {
    border: 1px solid #44475a;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #3b3b54;
}
.entry h4 {
    margin: 0 0 10px 0;
    color: #93c5fd;
}
button[type="submit"], .download-btn {
    background-color: #10b981;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s;
}
button[type="submit"]:hover, .download-btn:hover {
    background-color: #059669;
}
.preview-section {
    background: #2a2a3e;
    padding: 25px;
}
.preview-content {
    background: #ffffff;
    color: #1e1e2e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-height: 800px;
    overflow-y: auto;
}
.resume-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.resume-left {
    background: #2c3e50;
    color: white;
    padding: 20px;
    width: 35%;
    border-radius: 8px;
}
.resume-right {
    flex: 1;
    padding: 0 20px;
}
.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #34495e;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    font-size: 24px;
    overflow: hidden;
}
.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.resume-left h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}
.resume-left h4 {
    color: #bdc3c7;
    margin: 20px 0 10px 0;
    font-size: 16px;
}
.resume-left ul {
    list-style: none;
    padding: 0;
}
.resume-left li {
    margin: 8px 0;
    color: #ecf0f1;
}
.resume-right h2 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: bold;
}
.resume-right .job-title {
    color: #34495e;
    font-size: 18px;
    margin-bottom: 20px;
}
.resume-right h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}
.experience-item, .education-item {
    margin-bottom: 20px;
}
.experience-item h4, .education-item h4 {
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-size: 16px;
}
.experience-meta, .education-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}
.image-upload-section {
    border: 2px dashed #44475a;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 15px;
}
.image-upload-section.dragover {
    border-color: #60a5fa;
    background-color: rgba(96, 165, 250, 0.1);
}
.image-upload-btn, .image-adjust-btn, .image-bg-remove-btn {
    background-color: #60a5fa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}
.image-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 10px auto;
    overflow: hidden;
    display: none;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-adjust-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.image-adjust-modal-content {
    background: #2a2a3e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}
.image-adjust-modal-content canvas {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #44475a;
    border-radius: 6px;
}
.image-adjust-controls {
    margin-top: 20px;
}
.image-adjust-controls label {
    margin-right: 10px;
}
.image-adjust-controls input[type="range"] {
    width: 200px;
}
footer {
    background-color: #2a2a3e;
    color: #e0e0e0;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #60a5fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
footer p {
    margin: 5px 0;
    font-size: 14px;
}
footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #3b82f6;
}
.social-icons {
    margin: 15px 0;
}
.social-icons a {
    margin: 0 10px;
    display: inline-block;
}
.social-icons img {
    width: 24px;
    height: 24px;
    filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(180deg) brightness(100%) contrast(100%);
    transition: filter 0.3s;
}
.social-icons a:hover img {
    filter: invert(50%) sepia(70%) saturate(600%) hue-rotate(180deg) brightness(110%) contrast(110%);
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .form-section, .preview-section {
        padding: 15px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .resume-header {
        flex-direction: column;
    }
    .resume-left {
        width: 100%;
    }
    .image-adjust-modal-content {
        width: 95%;
    }
    footer {
        padding: 15px;
    }
}