* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Form Section */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.form-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.qualification-item,
.experience-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.qualification-item input,
.experience-item input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.skill-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

.btn-add {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-preview {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-preview:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-clear:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Preview Section */
.preview-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.preview-header h2 {
    color: #667eea;
    font-size: 1.8em;
}

.btn-download {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Resume Content */
.resume-container {
    background: white;
    border: 1px solid #ddd;
    min-height: 500px;
}

.resume-content {
    padding: 40px;
}

.resume-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.resume-section {
    margin-bottom: 25px;
}

#preview-personal {
    margin-bottom: 20px;
}

#preview-name {
    font-size: 1.8em;
    color: #000;
    margin-bottom: 5px;
}

#preview-profession {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
}

#preview-address,
#preview-contact {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 5px;
}

.section-title {
    background: #d0d0d0;
    padding: 8px 15px;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-left: 4px solid #000;
}

.qualification-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.qualification-table th,
.qualification-table td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

.qualification-table th {
    background: #f0f0f0;
    font-weight: bold;
}

.qualification-table td {
    font-size: 0.95em;
}

#preview-skills,
#preview-experience {
    list-style: none;
    padding-left: 0;
}

#preview-skills li,
#preview-experience li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

#preview-skills li:before,
#preview-experience li:before {
    content: "•";
    position: absolute;
    left: 5px;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: auto 20px auto;
    gap: 10px;
    font-size: 0.95em;
}

.info-grid .label {
    font-weight: 500;
    text-align: left;
}

.info-grid .colon {
    text-align: center;
}

.info-grid .value {
    text-align: left;
}

.signature-section {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.signature-section div {
    font-size: 0.95em;
}

/* Scrollbar Styling */
.form-section::-webkit-scrollbar,
.preview-section::-webkit-scrollbar {
    width: 8px;
}

.form-section::-webkit-scrollbar-track,
.preview-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-section::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-section::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .form-section,
    .preview-section {
        max-height: none;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .resume-content {
        padding: 20px;
    }
    
    .resume-title {
        font-size: 1.5em;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .form-section,
    .preview-header {
        display: none !important;
    }
    
    .preview-section {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: none;
    }
    
    .resume-container {
        border: none;
    }
    
    .resume-content {
        padding: 20px;
    }
}
