/* ========================================
   Navy Elite Professional Resume Template CSS
   Sophisticated Navy Blue & Gold Design
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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: 1400px;
    width: 95vw;
    height: 92vh;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ========================================
   Form Section (Left Panel)
   ======================================== */
.form-section {
    width: 450px;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 32px 28px;
    overflow-y: auto;
    border-right: 4px solid #0a2463;
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0a2463;
    margin-bottom: 24px;
    text-align: center;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: -0.5px;
}

.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0a2463;
    margin-top: 28px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Arial', sans-serif;
}

/* ========================================
   Form Groups & Inputs
   ======================================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 7px;
    font-family: 'Arial', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Helvetica Neue', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0a2463;
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: 'Helvetica Neue', sans-serif;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ========================================
   Color Theme Picker
   ======================================== */
.theme-color-section {
    background: linear-gradient(135deg, #0a2463 0%, #1e3a5f 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.2);
}

.theme-color-section label {
    color: white !important;
    font-size: 14px;
    margin-bottom: 12px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 3px solid #d4af37;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-input:hover {
    transform: scale(1.05);
}

.color-label {
    font-size: 13px;
    color: white;
    flex: 1;
}

.reset-color-btn {
    background: #d4af37;
    color: #0a2463;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-color-btn:hover {
    background: #f0c855;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Photo Upload Section
   ======================================== */
.photo-upload-section input[type="file"] {
    padding: 10px;
    border: 2px dashed #0a2463;
    border-radius: 10px;
    cursor: pointer;
    background: #f8f9fa;
}

.photo-upload-section input[type="file"]:hover {
    background: #e9ecef;
    border-color: #d4af37;
}

/* ========================================
   Add Buttons
   ======================================== */
.add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0a2463 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.2);
}

.add-btn:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a2463 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 36, 99, 0.3);
}

/* ========================================
   Experience & Education Items
   ======================================== */
.experience-item,
.education-item,
.skill-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.experience-item:hover,
.education-item:hover,
.skill-item:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 16px rgba(10, 36, 99, 0.1);
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ========================================
   Action Buttons
   ======================================== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.sample-data-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #f0c855 100%);
    color: #0a2463;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.sample-data-btn:hover {
    background: linear-gradient(135deg, #f0c855 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Preview Section (Right Panel)
   ======================================== */
.preview-section {
    flex: 1;
    background: #f8f9fa;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid #0a2463;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0a2463;
    font-family: 'Helvetica Neue', sans-serif;
}

.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: #6c757d;
    color: white;
}

.btn-header-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-header-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-header-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ========================================
   Preview Container
   ======================================== */
.preview-container {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* ========================================
   Resume Preview
   ======================================== */
.resume-preview {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* ========================================
   Resume Header
   ======================================== */
.resume-header {
    background: linear-gradient(135deg, #0a2463 0%, #1e3a5f 100%);
    padding: 50px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Profile Photo
   ======================================== */
.profile-photo-container {
    flex-shrink: 0;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #d4af37;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    color: #0a2463;
}

/* ========================================
   Header Text
   ======================================== */
.header-text {
    flex: 1;
}

.header-name {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-title {
    font-size: 22px;
    font-weight: 400;
    color: #d4af37;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========================================
   Resume Body (3 Column Layout)
   ======================================== */
.resume-body {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    gap: 30px;
    padding: 40px;
    background: white;
}

/* ========================================
   Left Sidebar
   ======================================== */
.resume-sidebar {
    border-right: 3px solid #e9ecef;
    padding-right: 25px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #0a2463;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d4af37;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0;
    color: #0a2463;
}

.contact-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
    word-break: break-word;
}

.sidebar-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    text-align: justify;
}

/* ========================================
   Center Main Content
   ======================================== */
.resume-main {
    padding: 0 20px;
}

.main-section {
    margin-bottom: 35px;
}

.main-title {
    font-size: 18px;
    font-weight: 800;
    color: #0a2463;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4af37;
}

/* ========================================
   Experience Entries
   ======================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.experience-entry {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #d4af37;
}

.exp-company {
    font-size: 16px;
    font-weight: 700;
    color: #0a2463;
    margin-bottom: 5px;
}

.exp-dates {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 10px;
}

.exp-roles {
    list-style-type: none;
    padding: 0;
}

.exp-roles li {
    font-size: 13px;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.exp-roles li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

/* ========================================
   Education Entries
   ======================================== */
.education-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-entry {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #d4af37;
}

.edu-institution {
    font-size: 15px;
    font-weight: 700;
    color: #0a2463;
    margin-bottom: 5px;
}

.edu-dates {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 5px;
}

.edu-degree {
    font-size: 13px;
    color: #495057;
}

/* ========================================
   Right Sidebar (Skills)
   ======================================== */
.resume-right-sidebar {
    border-left: 3px solid #e9ecef;
    padding-left: 20px;
}

.right-sidebar-section {
    margin-bottom: 30px;
}

.right-sidebar-title {
    font-size: 15px;
    font-weight: 800;
    color: #0a2463;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d4af37;
}

.skills-list {
    list-style-type: none;
    padding: 0;
}

.skills-list li {
    font-size: 13px;
    color: #495057;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border-left: 3px solid #d4af37;
    font-weight: 600;
}

/* ========================================
   Scrollbar Styling
   ======================================== */
.form-section::-webkit-scrollbar,
.preview-section::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 10px;
}

.form-section::-webkit-scrollbar-track,
.preview-section::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb,
.preview-section::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0a2463 0%, #1e3a5f 100%);
    border-radius: 10px;
}

.form-section::-webkit-scrollbar-thumb:hover,
.preview-section::-webkit-scrollbar-thumb:hover,
.preview-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1e3a5f 0%, #0a2463 100%);
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media screen and (max-width: 1200px) {
    .resume-builder-container {
        width: 98vw;
        height: 95vh;
    }

    .form-section {
        width: 400px;
    }

    .resume-body {
        grid-template-columns: 220px 1fr 180px;
        gap: 20px;
        padding: 30px;
    }

    .header-name {
        font-size: 36px;
    }

    .header-title {
        font-size: 18px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }
}

/* ========================================
   Responsive Design - Mobile Landscape
   ======================================== */
@media screen and (max-width: 992px) {
    body {
        padding: 10px;
    }

    .resume-builder-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        width: 100%;
    }

    .form-section {
        width: 100%;
        max-height: 60vh;
        border-right: none;
        border-bottom: 4px solid #0a2463;
    }

    .preview-section {
        width: 100%;
        max-height: none;
    }

    .resume-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .resume-sidebar,
    .resume-right-sidebar {
        border: none;
        padding: 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }
}

/* ========================================
   Responsive Design - Mobile Portrait
   ======================================== */
@media screen and (max-width: 768px) {
    body {
        padding: 5px;
        overflow: visible !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh;
    }

    .resume-builder-container {
        border-radius: 12px;
        height: auto !important;
        max-height: none !important;
        min-height: auto;
    }

    .form-section {
        padding: 20px 16px;
        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;
    }

    .preview-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .preview-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-header-secondary,
    .btn-header-success {
        width: 100%;
        padding: 12px;
    }

    .resume-header {
        padding: 30px 20px;
    }

    .header-name {
        font-size: 28px;
    }

    .header-title {
        font-size: 16px;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .resume-body {
        padding: 20px 15px;
        gap: 25px;
    }

    .main-title,
    .sidebar-title,
    .right-sidebar-title {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive Design - Small Mobile
   ======================================== */
@media screen and (max-width: 480px) {
    .form-section {
        padding: 16px 12px;
    }

    .form-section h2 {
        font-size: 20px;
    }

    .preview-container {
        padding: 10px;
    }

    .resume-header {
        padding: 20px 15px;
    }

    .header-content {
        gap: 15px;
    }

    .header-name {
        font-size: 24px;
    }

    .header-title {
        font-size: 14px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .resume-body {
        padding: 15px 10px;
        gap: 20px;
    }

    .main-title,
    .sidebar-title,
    .right-sidebar-title {
        font-size: 14px;
    }

    .exp-company,
    .edu-institution {
        font-size: 14px;
    }

    .contact-text,
    .sidebar-text,
    .exp-roles li,
    .edu-degree,
    .skills-list li {
        font-size: 12px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .resume-builder-container {
        box-shadow: none;
        width: 100%;
        height: auto;
        display: block;
    }

    .form-section {
        display: none;
    }

    .preview-section {
        width: 100%;
        padding: 0;
    }

    .preview-header {
        display: none;
    }

    .preview-container {
        box-shadow: none;
        padding: 0;
    }

    .resume-preview {
        max-width: 100%;
        box-shadow: none;
    }

    .resume-body {
        page-break-inside: avoid;
    }
}
