/* =================================== RESUME BUILDER - CONSOLIDATED STYLES =================================== */ /* =================================== 1. BASE STYLES & RESET =================================== */ * { 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%); margin: 0; padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; } /* =================================== 2. LAYOUT - MAIN CONTAINER =================================== */ .container { width: 95%; height: 95vh; display: grid; grid-template-rows: auto 1fr; gap: 0px; background: white; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); overflow: hidden; } .main-content { display: grid; grid-template-columns: 40% 60%; gap: 0px; height: 100%; overflow: hidden; } .form-section { padding: 10px 40px 40px 40px; background: #f8f9fa; overflow-y: auto; max-height: 100vh; } .preview-section { padding: 30px; background: #e9e9e9; overflow-y: auto; max-height: 100vh; } .preview-section-header { margin-bottom: 20px; color: #333; text-align: center; } /* =================================== 3. HEADER BAR COMPONENT =================================== */ .header-bar { background: linear-gradient(135deg, #300075 0%, #3b0d60 100%); padding: 12px 25px; display: flex; justify-content: flex-start; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative; z-index: 1000; gap:20px; } .header-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%); pointer-events: none; } .header-left { display: flex; align-items: center; gap: 15px; } .header-right { display: flex; align-items: center; } /* Header Brand */ .header-brand { display: flex; align-items: center; gap: 12px; margin-right: 8px; cursor: pointer; transition: all 0.3s ease; } .header-brand:hover .header-logo { } .header-brand:hover .header-app-name { text-shadow: 0 2px 4px rgba(0,0,0,0.2); } .header-logo img { width: 50px; } .header-app-info { display: flex; flex-direction: column; line-height: 1.2; } .header-app-name { color: white; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.1); margin-bottom: 3px; } .header-app-subtitle { color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; } .header-separator { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.3); margin: 0 15px; } /* Header Buttons */ .header-menu-item { position: relative; } .header-btn { background: rgba(255, 255, 255, 0.15); color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .header-btn:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } /* Dropdown Component */ /* Dropdown Component */ .dropdown { position: relative; } .dropdown-content { display: none; position: absolute; top: 100%; left: 0; /* Ensure left alignment with button */ background: white; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-radius: 8px; overflow: hidden; z-index: 1001; margin-top: 5px; border: 1px solid rgba(0,0,0,0.1); opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; } .dropdown-content.show { display: block; opacity: 1; transform: translateY(0); } .dropdown.active .fa-chevron-down { transform: rotate(180deg); transition: transform 0.3s ease; } .fa-chevron-down { transition: transform 0.3s ease; } .dropdown-content a { color: #2d3748; padding: 12px 16px; text-decoration: none; display: flex; align-items: center; justify-content: flex-start; /* Force left alignment */ gap: 10px; font-size: 14px; font-weight: 500; transition: background 0.2s ease; text-align: left; /* Ensure text is left-aligned */ white-space: nowrap; /* Prevent text wrapping */ } .dropdown-content a:hover { background: #f7fafc; color: #667eea; } .dropdown-content a i { width: 16px; text-align: center; flex-shrink: 0; /* Prevent icon from shrinking */ } /* Auto-save Indicator */ .auto-save-indicator-header { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); background: #ffe156; color: #3b0d60; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 5px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); animation: slideInFromRight 0.3s ease-out; z-index: 1001; white-space: nowrap; } .auto-save-indicator { position: fixed; top: 20px; right: 20px; background: #ffe156; color: #3b0d60; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 500; z-index: 1000; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); animation: slideInFromRight 0.3s ease-out; } /* =================================== 4. TYPOGRAPHY & HEADINGS =================================== */ h1 { color: #2d3748; font-size: 2.5rem; text-align: center; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } #logo-container { text-align: center; } #logo-container img { width: 128px; } .form-header-subheader { text-align: center; background: linear-gradient(135deg, #ff3ab8, #b50606); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin: 5px 0 7px 0; } .form-header-text { text-align: center; color: #333; margin: 0 0 30px 0; } /* =================================== 5. FORM COMPONENTS =================================== */ .form-group { margin-bottom: 25px; } .form-group:last-child { margin-bottom: 0px !important; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2d3748; cursor: pointer; } .custom-section-controls input, .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 16px; transition: border-color 0.3s ease; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group textarea { resize: vertical; min-height: 200px; field-sizing: content; } .form-group select { cursor: pointer; } .form-group select option { padding: 8px; } /* Checkbox styling */ input[type="checkbox"] { margin-right: 8px; transform: scale(1.1); width: auto !important; } /* =================================== 6. SECTION COMPONENTS =================================== */ .dynamic-section { border: 2px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 15px; background: white; } .custom-section-controls { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; } .custom-section-controls input { flex: 1; margin-bottom: 0; } #sectionsContainer { /* This will hold dynamically ordered sections */ } /* Section ordering styles */ .section-order-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; margin-bottom: 8px; background: white; border: 2px solid #e2e8f0; border-radius: 8px; transition: all 0.3s ease; } .section-order-item:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); } .section-name { font-weight: 600; color: #2d3748; } .order-buttons { display: flex; gap: 5px; } .order-btn { background: #667eea; color: white; border: none; border-radius: 4px; padding: 5px 8px; cursor: pointer; font-size: 12px; transition: background 0.3s ease; } .order-btn:hover { background: #5a67d8; } .order-btn:disabled { background: #a0aec0; cursor: not-allowed; } /* =================================== 7. BUTTON COMPONENTS =================================== */ .add-btn, .remove-btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; margin: 5px; } .add-btn { background: #48bb78; color: white; } .add-btn:hover { background: #38a169; transform: translateY(-2px); } .remove-btn { background: #f56565; color: white; } .remove-btn:hover { background: #e53e3e; transform: translateY(-2px); } .download-buttons { display: flex; gap: 15px; margin: 30px 0; justify-content: center; } .download-btn { background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; padding: 15px 30px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px; } .download-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); } .import-btn, .export-btn, .clear-btn { padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; } .import-btn { background: #38a169; color: white; } .import-btn:hover { background: #2f855a; transform: translateY(-2px); } .export-btn { background: #3182ce; color: white; } .export-btn:hover { background: #2c5aa0; transform: translateY(-2px); } .clear-btn { background: #e53e3e; color: white; } .clear-btn:hover { background: #c53030; transform: translateY(-2px); } .add-project-btn { background: #4caf50; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 5px; } .add-project-btn:hover { background: #45a049; } .remove-project-btn { background: #f44336; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; margin-top: 5px; margin-bottom: 25px; } .remove-project-btn:hover { background: #d32f2f; } /* =================================== 8. RESUME PREVIEW STYLES =================================== */ .resume-preview { font-family: 'Times New Roman', serif; line-height: 1.6; color: #000; background: white; padding: 40px; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .resume-header { text-align: center; } .resume-header h2 { font-size: 24px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; } .contact-info { font-size: 14px; margin-bottom: 15px; } .resume-section { margin-bottom: 25px; } .resume-section h3 { font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 5px; margin-bottom: 15px; } /* Experience & Education Items */ .experience-item { border-bottom: 1px solid #ddd; padding-bottom: 15px; margin-bottom: 15px; } .experience-item:last-child { border-bottom: none; } .experience-item, .education-item, .course-item, .cert-item, .language-item { margin-bottom: 10px; } .experience-item h4, .education-item h4, .course-item h4, .cert-item h4 { font-size: 14px; font-weight: bold; margin-bottom: 5px; } ul.coursework-list { margin-left: 20px; } .job-title { font-size: 14px; font-style: italic; margin-bottom: 8px; } .experience-item .company-info, .education-item .school-info { font-style: italic; margin-bottom: 8px; font-size: 13px; } .experience-item ul { margin-left: 20px; margin-bottom: 10px; } .experience-item ul li { margin-bottom: 5px; font-size: 13px; } /* Project details styling */ .project-details { margin: 5px 0 10px 20px !important; padding: 0 !important; } .project-details li { font-size: 12px !important; margin-bottom: 3px !important; list-style-type: disc !important; color: #555 !important; } .experience-subsection ul > li > strong { color: #333; font-weight: bold; } /* Skills & Languages */ .skills-grid, .languages-grid { display: flex; flex-wrap: wrap; gap: 15px; } .skill-item, .language-item { font-size: 13px; } /* Personal details */ .personal-details p { margin-bottom: 8px; font-size: 13px; } /* References section */ #referencesSection { text-align: center; margin-top: 50px; } #referencesText { font-style: italic; font-size: 14px; } /* LinkedIn link styling */ #previewLinkedIn a { color: #0077b5; text-decoration: none; } #previewLinkedIn a:hover { text-decoration: underline; } /* =================================== 9. ALERT COMPONENTS =================================== */ .alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; text-decoration: underline; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert-dismissable, .alert-dismissible { padding-right: 35px; } .alert-dismissable .close, .alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; color: #468847; } .alert-success hr { border-top-color: #c9e2b3; } .alert-success .alert-link { color: #356635; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; color: #3a87ad; } .alert-info hr { border-top-color: #a6e1ec; } .alert-info .alert-link { color: #2d6987; } .alert-warning { background-color: #fcf8e3; border-color: #fbeed5; color: #c09853; } .alert-warning hr { border-top-color: #f8e5be; } .alert-warning .alert-link { color: #a47e3c; } .alert-danger { background-color: #f2dede; border-color: #eed3d7; color: #b94a48; } .alert-danger hr { border-top-color: #e6c1c7; } .alert-danger .alert-link { color: #953b39; } /* Status Messages */ .status-message { padding: 10px 15px; border-radius: 5px; margin-top: 10px; font-weight: 500; display: none; } .status-message.success { background: #c6f6d5; color: #22543d; border: 1px solid #9ae6b4; } .status-message.error { background: #fed7d7; color: #742a2a; border: 1px solid #fc8181; } /* =================================== 10. ATS SCORE SECTION =================================== */ .ats-score-section { background: #f8f9fc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 25px; margin-top: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .ats-score-section h3 { color: #2d3748; margin-bottom: 20px; font-size: 1.3rem; display: flex; align-items: center; gap: 10px; } .ats-score-container { display: flex; gap: 30px; margin-bottom: 25px; align-items: center; } .ats-score-display { display: flex; gap: 20px; align-items: center; } .ats-score-circle { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; font-weight: bold; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .ats-score-circle span:first-child { font-size: 24px; line-height: 1; } .ats-score-label { font-size: 11px; margin-top: 2px; } .ats-grade-display { text-align: center; } .ats-grade { display: block; font-size: 32px; font-weight: bold; line-height: 1; margin-bottom: 5px; } .ats-grade.grade-a { color: #22c55e; } .ats-grade.grade-b { color: #3b82f6; } .ats-grade.grade-c { color: #f59e0b; } .ats-grade.grade-d { color: #ef4444; } .ats-grade.grade-f { color: #dc2626; } .ats-grade-label { font-size: 14px; color: #64748b; font-weight: 500; } .ats-progress-container { flex: 1; min-width: 200px; } .ats-progress-track { width: 100%; height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden; margin-bottom: 8px; position: relative; } .ats-progress-bar { height: 100%; border-radius: 6px; transition: width 0.8s ease-in-out; position: relative; } .ats-progress-bar.poor { background: linear-gradient(90deg, #ef4444, #dc2626); } .ats-progress-bar.fair { background: linear-gradient(90deg, #f59e0b, #d97706); } .ats-progress-bar.good { background: linear-gradient(90deg, #22c55e, #16a34a); } .ats-progress-labels { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; margin-top: 5px; } /* ATS Tabs */ .ats-tabs { display: flex; gap: 5px; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; } .ats-tab { background: none; border: none; padding: 12px 16px; cursor: pointer; font-weight: 500; color: #64748b; border-radius: 8px 8px 0 0; transition: all 0.3s ease; display: flex; align-items: center; gap: 6px; font-size: 14px; } .ats-tab:hover { background: #f1f5f9; color: #475569; } .ats-tab.active { background: white; color: #2d3748; border-bottom: 2px solid #667eea; margin-bottom: -2px; } .ats-content { background: white; border-radius: 0 8px 8px 8px; padding: 20px; min-height: 200px; } .ats-tab-content { display: none; } .ats-tab-content.active { display: block; } .ats-tab-content h4 { color: #2d3748; margin-bottom: 15px; font-size: 16px; display: flex; align-items: center; gap: 8px; } .ats-tab-content ul { list-style: none; padding: 0; } .ats-tab-content li { background: #f8fafc; padding: 12px 15px; margin-bottom: 8px; border-radius: 6px; border-left: 4px solid #e2e8f0; font-size: 14px; line-height: 1.4; } #atsFeedbackList li { border-left-color: #22c55e; background: #f0fdf4; } #atsIssuesList li { border-left-color: #ef4444; background: #fef2f2; } #atsRecommendationsList li { border-left-color: #3b82f6; background: #eff6ff; } .ats-info { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 15px; margin-top: 20px; } .ats-info p { margin: 0; font-size: 14px; color: #1e40af; line-height: 1.4; } /* Personal Details Bullet Points Styling */ .personal-details-list { list-style: none; padding: 0; margin: 0; } .personal-details-list li { margin-bottom: 8px; font-size: 13px; padding-left: 15px; position: relative; } .personal-details-list li::before { content: '•'; color: #333; font-weight: bold; position: absolute; left: 0; } /* Ensure proper spacing and alignment in print */ @media print { .personal-details-list li { font-size: 11pt !important; margin-bottom: 6pt !important; line-height: 1.3 !important; } .personal-details-list li::before { font-size: 11pt !important; } } /* =================================== 11. IMPORT/EXPORT CONTROLS =================================== */ .import-export-controls { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; } /* =================================== 12. ANIMATIONS =================================== */ @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInFromRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes scoreUpdate { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } .ats-score-circle.updating { animation: scoreUpdate 0.6s ease-in-out; } /* =================================== 13. PRINT STYLES =================================== */ /* Ensure text doesn't break poorly in PDF */ .resume-preview * { word-wrap: break-word; overflow-wrap: break-word; } .resume-preview .experience-item, .resume-preview .education-item, .resume-preview .course-item, .resume-preview .cert-item { page-break-inside: avoid; break-inside: avoid; } @media print { .project-details { margin: 3pt 0 8pt 15pt !important; } .project-details li { font-size: 10pt !important; margin-bottom: 2pt !important; line-height: 1.2 !important; } } /* =================================== MODAL STYLES =================================== */ .modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); animation: fadeIn 0.3s ease-out; } .modal-content { background-color: white; margin: 5% auto; padding: 0; border: none; border-radius: 12px; width: 90%; max-width: 600px; max-height: 85vh; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); animation: slideDown 0.3s ease-out; } .modal-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { margin: 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; } .close-modal { color: white; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; transition: all 0.3s ease; padding: 5px; border-radius: 50%; } .close-modal:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); } .modal-body { padding: 25px; max-height: 60vh; overflow-y: auto; line-height: 1.6; } .about-logo { text-align: center; margin-bottom: 20px; } .about-info { background: #f8f9fc; padding: 20px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #667eea; } .about-info h3 { margin: 0 0 15px 0; color: #2d3748; font-size: 1.3rem; } .about-info p { margin: 8px 0; color: #4a5568; font-size: 14px; } .about-info a { color: #667eea; text-decoration: none; } .about-info a:hover { text-decoration: underline; } .about-features { margin-bottom: 20px; } .about-features h4, .about-description h4, .about-support h4 { color: #2d3748; margin-bottom: 10px; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; } .about-features ul { list-style: none; padding: 0; margin: 0; } .about-features li { padding: 8px 0; color: #4a5568; display: flex; align-items: center; gap: 10px; font-size: 14px; } .about-features li i { color: #48bb78; font-size: 16px; } .about-description, .about-support { margin-bottom: 20px; } .about-description p, .about-support p { color: #4a5568; font-size: 14px; line-height: 1.6; margin: 8px 0; } .modal-footer { background: #f7fafc; padding: 20px 25px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #e2e8f0; } .modal-btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.3s ease; text-decoration: none; display: inline-block; } .modal-btn { background: #e2e8f0; color: #4a5568; } .modal-btn:hover { background: #cbd5e0; transform: translateY(-1px); } .modal-btn.primary { background: linear-gradient(135deg, #667eea, #764ba2); color: white; } .modal-btn.primary:hover { background: linear-gradient(135deg, #5a67d8, #6b46c1); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } /* Modal animations */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideDown { from { opacity: 0; transform: translateY(-50px) scale(0.8); } to { opacity: 1; transform: translateY(0) scale(1); } } /* Mobile responsiveness for modal */ @media (max-width: 768px) { .modal-content { width: 95%; margin: 10% auto; max-height: 90vh; } .modal-header { padding: 15px 20px; } .modal-header h2 { font-size: 1.3rem; } .modal-body { padding: 20px; max-height: 65vh; } .modal-footer { padding: 15px 20px; flex-direction: column; } .modal-btn { width: 100%; margin-bottom: 10px; } .close-modal { font-size: 24px; } } /* =================================== 15. STICKY SECTION HEADERS =================================== */ /* Make the form section container relative for sticky positioning */ .form-section { position: relative; } /* Make section headers sticky when scrolling */ .section-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 15px 20px; margin: 5px -40px 20px -40px; /* <-- Reduced from 30px to 5px */ font-size: 1.2rem; font-weight: 600; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: box-shadow 0.3s ease; } /* Enhanced shadow when stuck (optional visual enhancement) */ .section-header.stuck { box-shadow: 0 4px 12px rgba(0,0,0,0.15); } /* Ensure proper spacing after sticky headers */ .section-header + .form-group, .section-header + .import-export-controls, .section-header + .custom-section-controls, .section-header + #experienceContainer, .section-header + #educationContainer, .section-header + #coursesContainer, .section-header + #certificatesContainer, .section-header + #customSectionsContainer, .section-header + #sectionOrderContainer { margin-top: 20px; } /* Adjust mobile sticky headers */ @media (max-width: 768px) { .section-header { margin: 5px -40px 15px -40px; /* <-- Reduced from 20px to 5px */ padding: 12px 20px; font-size: 1.1rem; } } /* =================================== GRAMMAR & SPELL CHECK STYLES =================================== */ /* =================================== INTERACTIVE SPELLCHECK STYLES =================================== */ /* Spellcheck Button */ .spellcheck-button { background: linear-gradient(135deg, #3b82f6, #1e40af); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; margin-top: 8px; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); } .spellcheck-button:hover { background: linear-gradient(135deg, #1e40af, #1e3a8a); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4); } .spellcheck-button:active { transform: translateY(0); } .spellcheck-button i { font-size: 14px; } /* Suggestions Container */ .spellcheck-suggestions { background: white; border: 2px solid #e5e7eb; border-radius: 12px; margin-top: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden; animation: slideDown 0.3s ease; } .suggestions-header { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #92400e; padding: 12px 16px; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; } .suggestions-header i { font-size: 16px; } .close-suggestions { background: none; border: none; color: #92400e; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.2s ease; } .close-suggestions:hover { background: rgba(146, 64, 14, 0.2); } /* Suggestions List */ .suggestions-list { max-height: 300px; overflow-y: auto; padding: 8px; } .suggestion-item { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-bottom: 8px; transition: all 0.3s ease; } .suggestion-item:last-child { margin-bottom: 0; } .misspelled-word { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; } .misspelled-word i { color: #ef4444; font-size: 16px; } .word-text { font-weight: 600; color: #ef4444; background: #fef2f2; padding: 4px 8px; border-radius: 4px; font-family: monospace; } /* Word Suggestions */ .word-suggestions { display: flex; flex-wrap: wrap; gap: 6px; } .replace-btn { background: #10b981; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: all 0.3s ease; min-height: 32px; } .replace-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } .replace-btn:active { transform: translateY(0); } .replace-btn i { font-size: 12px; } .no-suggestions { color: #6b7280; font-style: italic; font-size: 13px; padding: 4px 8px; } /* More Issues Indicator */ .more-issues { text-align: center; color: #6b7280; font-size: 12px; font-style: italic; padding: 8px; background: #f3f4f6; border-radius: 6px; margin-top: 8px; } .more-issues i { margin-right: 4px; } /* Suggestions Footer */ .suggestions-footer { background: #f9fafb; padding: 12px 16px; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; gap: 8px; } .recheck-btn, .close-all-btn { background: #6b7280; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: all 0.3s ease; } .recheck-btn:hover { background: #374151; } .close-all-btn:hover { background: #374151; } /* Basic Message */ .spellcheck-message { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; margin-top: 8px; animation: slideDown 0.3s ease; } .message-content { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #1e40af; font-size: 14px; } .message-content i { color: #3b82f6; } .message-content button { background: none; border: none; color: #1e40af; font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background 0.2s ease; } .message-content button:hover { background: rgba(30, 64, 175, 0.1); } /* Success Message */ .spellcheck-success { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; margin-top: 8px; animation: slideDown 0.3s ease; } .success-content { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #15803d; font-size: 14px; font-weight: 500; } .success-content i { color: #22c55e; font-size: 16px; } .success-content button { background: #22c55e; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 12px; transition: background 0.2s ease; } .success-content button:hover { background: #16a34a; } /* Replacement Feedback */ .replacement-feedback { position: absolute; background: #22c55e; color: white; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; top: -25px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1000; animation: fadeInOut 2s ease forwards; } .replacement-feedback i { margin-right: 4px; } /* Animations */ @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeInOut { 0% { opacity: 0; transform: translateX(-50%) translateY(-5px); } 20% { opacity: 1; transform: translateX(-50%) translateY(0); } 80% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-5px); } } /* Mobile Responsiveness */ @media (max-width: 768px) { .spellcheck-button { width: 100%; justify-content: center; margin-top: 10px; padding: 10px 16px; font-size: 14px; } .spellcheck-suggestions { margin-top: 10px; } .suggestions-header { padding: 10px 12px; font-size: 13px; } .suggestion-item { padding: 10px; } .word-suggestions { flex-direction: column; gap: 4px; } .replace-btn { width: 100%; justify-content: center; min-height: 40px; font-size: 14px; } .suggestions-footer { flex-direction: column; gap: 8px; } .recheck-btn, .close-all-btn { width: 100%; justify-content: center; padding: 8px 12px; font-size: 13px; } } /* Small mobile devices */ @media (max-width: 480px) { .suggestion-item { margin-bottom: 6px; } .misspelled-word { flex-direction: column; align-items: flex-start; gap: 6px; } .word-text { font-size: 14px; } .replace-btn { min-height: 36px; font-size: 13px; } } /* Enhanced spell check button styles */ .spellcheck-button { background: linear-gradient(135deg, #3b82f6, #1e40af); color: white; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); min-height: 42px; width: 100%; } .spellcheck-button:hover { background: linear-gradient(135deg, #1e40af, #1e3a8a); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); } .spellcheck-button:active { transform: translateY(0); } .spellcheck-button i { font-size: 16px; } /* Enhanced suggestions styles */ .enhanced-suggestions { margin-top: 15px; border: 2px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 8px 24px rgba(0,0,0,0.12); animation: slideDown 0.3s ease; } .issue-type-section { border-bottom: 1px solid #f3f4f6; } .issue-type-section:last-child { border-bottom: none; } .issue-type-header { background: #f9fafb; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; } .type-badge { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #374151; } .issue-count { background: #e5e7eb; color: #6b7280; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .type-issues { padding: 8px; } .issue-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; } .issue-info { display: flex; flex-direction: column; gap: 4px; } .issue-text { font-weight: 600; color: #1f2937; font-family: monospace; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 13px; } .issue-category { font-size: 11px; color: #6b7280; background: #f9fafb; padding: 2px 6px; border-radius: 8px; border: 1px solid #e5e7eb; } .severity-badge { padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 500; text-transform: uppercase; } .severity-high { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; } .severity-medium { background: #fffbeb; color: #d97706; border: 1px solid #fed7aa; } .severity-low { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; } /* Make buttons more visible on mobile */ @media (max-width: 768px) { .spellcheck-button { padding: 12px 20px; font-size: 15px; min-height: 48px; margin-top: 15px; } .spellcheck-button i { font-size: 18px; } } /* Enhanced replacement feedback */ .replacement-feedback { position: absolute; background: #22c55e; color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; top: -35px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1000; box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3); transition: all 0.3s ease; pointer-events: none; } .replacement-feedback::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #22c55e; } .replacement-feedback i { margin-right: 4px; } /* Improved replace button styling */ .replace-btn { background: #10b981; color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; margin: 4px 2px; min-height: 36px; box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2); } .replace-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3); } .replace-btn:active { transform: translateY(0); background: #047857; } .replace-btn i { font-size: 12px; } /* Word suggestions container */ .word-suggestions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 8px; background: #f9fafb; border-radius: 6px; border: 1px solid #e5e7eb; } /* Mobile improvements */ @media (max-width: 768px) { .replace-btn { width: 100%; justify-content: center; margin: 4px 0; min-height: 44px; font-size: 14px; } .word-suggestions { flex-direction: column; } .replacement-feedback { font-size: 13px; padding: 8px 14px; top: -40px; } } /* =================================== 16. CUSTOM SECTION ORDERING =================================== */ .section-order-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; margin-bottom: 8px; background: white; border: 2px solid #e2e8f0; border-radius: 8px; transition: all 0.3s ease; } .section-order-item:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); } .section-name { font-weight: 600; color: #2d3748; display: flex; align-items: center; gap: 8px; } .section-name i { width: 20px; text-align: center; color: #667eea; } /* Highlight custom sections */ .section-order-item[data-section^="custom_"] { border-color: #48bb78; background: #f0fff4; } .section-order-item[data-section^="custom_"] .section-name i { color: #48bb78; } /* =================================== 16. PROJECTS SECTION IMPROVEMENTS =================================== */ /* Style the projects section when hidden/shown */ .projects-container { transition: all 0.3s ease; overflow: hidden; } /* Better project section styling */ .projects-section { background: #f8f9fc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-top: 10px; } .projects-container { margin-bottom: 15px; } .projects-container:empty { margin-bottom: 0; } .project-item { background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .project-item:last-child { margin-bottom: 0; } /* Style the Add Project button differently when projects are hidden */ .add-project-btn { width: 100%; justify-content: center; background: #4f46e5; transition: all 0.3s ease; } .add-project-btn:hover { background: #4338ca; transform: translateY(-1px); } /* When projects container is visible, style the button smaller */ .projects-container[style*="block"] + .add-project-btn { width: auto; justify-content: flex-start; background: #4caf50; } .projects-container[style*="block"] + .add-project-btn:hover { background: #45a049; } /* =================================== COLLAPSIBLE SECTIONS - IMPROVED VERSION =================================== */ .section-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 15px 20px; margin: 10px -40px 10px -40px; font-size: 1.2rem; font-weight: 600; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.3s ease; cursor: pointer; user-select: none; } .section-header:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-1px); } /* Add collapse icon */ .section-header::after { content: '\f078'; /* FontAwesome chevron-down */ font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(-90deg); /* Start collapsed */ font-size: 18px; color: rgba(255, 255, 255, 0.9); transition: transform 0.3s ease, color 0.3s ease; pointer-events: none; } /* When expanded */ .section-header.expanded::after { transform: translateY(-50%) rotate(0deg); } .section-header.expanded { margin-bottom: 20px; } .section-header:hover::after { color: white; } /* Section content wrapper - this will be added by JavaScript */ .section-content { display: none; opacity: 0; transition: opacity 0.3s ease; } .section-content.expanded { display: block; opacity: 1; } /* Mobile adjustments */ @media (max-width: 768px) { .section-header { margin: 5px -40px 5px -40px; padding: 12px 20px; font-size: 1.1rem; } .section-header.expanded { margin-bottom: 15px; } .section-header::after { right: 15px; font-size: 16px; } } /* Sample CV Button Styling */ .sample-cv-btn, .sample-cv-btn:hover { background: rgb(255 224 74); color: #000000; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .sample-cv-btn:hover { } /* Mobile sidebar sample CV link */ @media (max-width: 768px) { .mobile-menu-section a[onclick*="loadSampleCV"] { color: #10b981; } .mobile-menu-section a[onclick*="loadSampleCV"]:hover { background: #f0fdf4; color: #047857; } .mobile-menu-section a[onclick*="loadSampleCV"] i { color: #10b981; } } /* =================================== MOBILE SIDEBAR & ENHANCED MOBILE STYLES =================================== */ /* Desktop menu - hide on mobile */ .desktop-menu { display: flex; gap: 15px; } /* Mobile menu button - hide on desktop */ .mobile-menu-btn { display: none; background: rgba(255, 255, 255, 0.15); color: white; border: none; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 18px; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); min-height: 40px; min-width: 40px; align-items: center; justify-content: center; } .mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-1px); } /* Mobile Sidebar */ .mobile-sidebar { position: fixed; top: 0; right: -350px; /* Start hidden */ width: 320px; height: 100vh; background: white; box-shadow: -5px 0 20px rgba(0,0,0,0.3); z-index: 10000; transition: right 0.3s ease; overflow-y: auto; } .mobile-sidebar.show { right: 0; } .mobile-sidebar-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; } .mobile-sidebar-header h3 { margin: 0; font-size: 1.4rem; } .close-sidebar-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 8px; border-radius: 4px; transition: background 0.3s ease; } .close-sidebar-btn:hover { background: rgba(255, 255, 255, 0.2); } .mobile-sidebar-content { padding: 0; } .mobile-menu-section { border-bottom: 1px solid #e2e8f0; padding: 0; } .mobile-menu-section h4 { background: #f8f9fc; color: #2d3748; margin: 0; padding: 15px 20px; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e2e8f0; } .mobile-menu-section a { display: flex; align-items: center; gap: 12px; padding: 15px 20px; color: #4a5568; text-decoration: none; font-size: 15px; font-weight: 500; transition: all 0.3s ease; border-bottom: 1px solid #f7fafc; } .mobile-menu-section a:hover { background: #f7fafc; color: #667eea; padding-left: 25px; } .mobile-menu-section a i { width: 20px; text-align: center; color: #667eea; } /* Mobile Sidebar Overlay */ .mobile-sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(2px); } .mobile-sidebar-overlay.show { opacity: 1; visibility: visible; } /* Mobile Download Section */ .mobile-print-tip{ display: none; /* Hidden by default */ } .mobile-download-section { display: none; /* Hidden by default */ background: linear-gradient(135deg, #667eea, #764ba2); padding: 15px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .mobile-download-buttons { display: flex; gap: 10px; } .mobile-download-btn { flex: 1; background: white; color: #667eea; border: none; padding: 12px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; min-height: 48px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .mobile-download-btn:hover { background: #f7fafc; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .mobile-download-btn i { font-size: 16px; } .pdf-btn:hover { color: #e53e3e; } .word-btn:hover { color: #3182ce; } /* =================================== UPDATED MOBILE RESPONSIVE STYLES =================================== */ @media (max-width: 768px) { body { padding: 0; align-items: flex-start; justify-content: flex-start; height: 100vh; height: -webkit-fill-available; /* iOS Safari fix */ } .container { width: 100%; height: 100vh; height: -webkit-fill-available; /* iOS Safari fix */ border-radius: 0; box-shadow: none; display: flex; flex-direction: column; } /* Header adjustments for mobile */ .header-bar { z-index: 1000; position: relative; padding: 8px 15px; min-height: 60px; flex-wrap: nowrap; } /* Hide desktop menu on mobile */ .desktop-menu { display: none; } /* Show mobile menu button */ .mobile-menu-btn { display: flex; } .header-left { gap: 8px; min-width: 0; flex: 1; overflow: visible; } .header-right { align-items: flex-start; /* Align items to top */ gap: 8px; flex-shrink: 0; padding-top: 2px; /* Match the brand padding */ } .header-brand { max-width: calc(100vw - 120px); min-width: 0; flex: 1; overflow: visible; /* Allow content to wrap */ align-items: flex-start; /* Align items to top */ padding-top: 2px; /* Small adjustment for better alignment */ } .header-logo img { height: 32px; flex-shrink: 0; margin-top: 2px; /* Slight adjustment for better visual alignment */ } .header-app-name { font-size: 14px !important; font-weight: 700; line-height: 1.2 !important; white-space: normal !important; /* Allow text wrapping */ overflow: visible !important; text-overflow: unset !important; max-width: 100%; display: block; word-break: break-word; /* Break long words if necessary */ /* Remove any webkit line clamp properties */ -webkit-line-clamp: unset; -webkit-box-orient: unset; display: block; } .header-app-subtitle { display:none !important; } /* Mobile Tab System */ .mobile-tabs { display: flex; background: #f1f5f9; border-bottom: 2px solid #e2e8f0; z-index: 100; position: relative; order: 2; flex-shrink: 0; } .mobile-tab { flex: 1; background: none; border: none; padding: 15px 10px; font-weight: 600; font-size: 14px; color: #64748b; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; position: relative; } .mobile-tab.active { background: white; color: #667eea; border-bottom: 3px solid #667eea; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .mobile-tab:not(.active):hover { background: #e2e8f0; color: #475569; } /* Main content area with proper height calculation */ .main-content { display: flex; flex-direction: column; height: calc(100vh - 110px); height: calc(-webkit-fill-available - 110px); /* iOS Safari fix */ overflow: hidden; order: 3; flex: 1; } /* Hide sections by default on mobile */ .form-section, .preview-section { display: none; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; } /* Show active section */ .form-section.active, .preview-section.active { display: block; } .form-section { display: none; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 15px 100px 15px; /* Increased bottom padding from 15px to 100px */ background: #f8f9fa; /* Add safe area for devices with home indicators */ padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } /* Ensure last section has extra margin */ .form-section > *:last-child { margin-bottom: 50px !important; } /* Fix for section order container specifically */ #sectionOrderContainer:last-child { margin-bottom: 80px !important; padding-bottom: 30px !important; } .preview-section { padding: 15px; background: #e9e9e9; } /* Show download section only on mobile preview */ .preview-section.active .mobile-download-section, .mobile-print-tip { display: block; } /* Form styling improvements */ .form-group { margin-bottom: 20px; } .form-group label { font-size: 15px; font-weight: 600; margin-bottom: 8px; display: block; color: #1e293b; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 16px; background: white; transition: all 0.3s ease; appearance: none; -webkit-appearance: none; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15); transform: translateY(-1px); } /* Section headers */ .section-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 16px 15px; margin: 15px -15px 15px -15px; font-size: 1.1rem; font-weight: 600; border-radius: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer; user-select: none; position: relative; } .section-header::after { content: '\f078'; font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 15px; top: 50%; transform: translateY(-50%) rotate(-90deg); font-size: 16px; transition: transform 0.3s ease; } .section-header.expanded::after { transform: translateY(-50%) rotate(0deg); } .section-header.expanded { margin-bottom: 20px; } /* Dynamic sections */ .dynamic-section { border: 2px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 15px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } /* Buttons */ .add-btn, .remove-btn { padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.3s ease; margin: 8px 4px; } .add-btn { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } .remove-btn { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); } /* Preview section */ .preview-section-header { font-size: 1.3rem; margin-bottom: 15px; text-align: center; color: #1e293b; } .resume-preview { font-family: 'Times New Roman', serif; line-height: 1.5; color: #000; background: white; padding: 20px 15px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); margin-bottom: 20px; } /* Auto-save indicator */ .auto-save-indicator { top: 10px; right: 10px; font-size: 11px; padding: 6px 10px; border-radius: 15px; z-index: 999; } .auto-save-indicator-header { padding: 4px 8px; font-size: 10px; margin-top: 4px; /* Slight adjustment */ } .mobile-menu-btn { min-width: 40px; min-height: 40px; padding: 8px; margin-top: 0; /* Keep button at top */ } .mobile-download-btn { min-height: 50px !important; font-size: 16px !important; padding: 12px 20px !important; } .mobile-download-section { z-index: 100; background: white; padding: 15px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; } } /* Small mobile devices */ @media (max-width: 480px) { .header-app-name { max-width: 170px; } .mobile-sidebar { width: 280px; right: -280px; } .mobile-download-buttons { flex-direction: column; gap: 8px; } .mobile-download-btn { min-height: 44px; } } /* For iPhone 15 Pro Max and similar large screens */ @media (max-width: 430px) and (min-width: 400px) { .header-app-name { font-size: 15px; /* Slightly larger on bigger mobile screens */ -webkit-line-clamp: 1; /* Single line on very wide screens */ } .header-app-subtitle { font-size: 11px; display: block; /* Keep subtitle visible */ } .header-brand { max-width: calc(100vw - 110px); /* More space for text */ } } /* For smaller devices */ @media (max-width: 375px) { .header-app-name { font-size: 13px; -webkit-line-clamp: 2; } .header-app-subtitle { font-size: 9px; } .header-brand { max-width: calc(100vw - 130px); } } /* Enhanced Mobile Print Styles */ @media print and (max-width: 768px) { * { -webkit-print-color-adjust: exact !important; color-adjust: exact !important; } body { font-size: 11pt !important; line-height: 1.3 !important; } .resume-preview { padding: 5mm !important; width: 100% !important; max-width: none !important; } .resume-header h2 { font-size: 14pt !important; margin-bottom: 4pt !important; } .resume-header h4 { font-size: 11pt !important; margin-bottom: 4pt !important; } .contact-info { font-size: 9pt !important; line-height: 1.2 !important; } .resume-section h3 { font-size: 10pt !important; margin-bottom: 5pt !important; } .experience-item h4, .education-item h4, .course-item h4, .cert-item h4 { font-size: 9pt !important; } ul li { font-size: 8pt !important; line-height: 1.2 !important; } p { font-size: 9pt !important; line-height: 1.2 !important; } } /* Mobile-specific print button improvements */ @media (max-width: 768px) { } /* =================================== PWA SPECIFIC STYLES =================================== */ /* Installation prompt styles */ .install-prompt { position: fixed; bottom: 20px; left: 20px; right: 20px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1000; animation: slideUp 0.3s ease-out; max-width: 400px; margin: 0 auto; } .install-prompt-content { display: flex; align-items: center; gap: 15px; } .install-prompt h3 { margin: 0 0 8px 0; font-size: 1.1rem; } .install-prompt p { margin: 0 0 15px 0; opacity: 0.9; font-size: 14px; } .install-prompt-buttons { display: flex; gap: 10px; } .install-prompt-btn { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; font-size: 14px; } .install-prompt-btn.primary { background: rgba(255, 255, 255, 0.9); color: #667eea; } .install-prompt-btn:hover { background: rgba(255, 255, 255, 0.3); } .install-prompt-btn.primary:hover { background: white; } /* Update banner styles (already included above) */ /* Offline indicator */ .offline-indicator { position: fixed; top: 70px; right: 20px; background: #ef4444; color: white; padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: 500; z-index: 999; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); animation: slideInFromRight 0.3s ease-out; } .offline-indicator.online { background: #10b981; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } /* PWA splash screen styles for iOS */ @media (display-mode: standalone) { /* Hide URL bar in standalone mode */ body { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); } /* Adjust header for standalone mode */ .header-bar { padding-top: max(12px, env(safe-area-inset-top)); } } /* Animations */ @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes slideInFromRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Mobile PWA adjustments */ @media (max-width: 768px) { .install-prompt { bottom: 10px; left: 10px; right: 10px; padding: 15px; } .install-prompt h3 { font-size: 1rem; } .install-prompt-buttons { flex-direction: column; } .install-prompt-btn { width: 100%; justify-content: center; } .offline-indicator { top: 65px; right: 10px; font-size: 11px; padding: 6px 12px; } } /* iOS specific PWA styles */ @supports (-webkit-touch-callout: none) { @media (display-mode: standalone) { .header-bar { padding-top: 44px; /* Status bar height */ } .container { padding-top: 0; } } } /* Dark mode support for PWA */ @media (prefers-color-scheme: dark) { .update-banner { background: linear-gradient(135deg, #1f2937, #111827); border-bottom: 1px solid #374151; } .install-prompt { background: linear-gradient(135deg, #1f2937, #111827); border: 1px solid #374151; } } .install-btn { background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .install-btn:hover { background: linear-gradient(135deg, #059669, #047857); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .update-banner { position: fixed; top: 0; left: 0; right: 0; background: linear-gradient(135deg, #f59e0b, #d97706); color: white; z-index: 10000; box-shadow: 0 2px 8px rgba(0,0,0,0.2); } .update-content { display: flex; align-items: center; justify-content: center; padding: 12px 20px; gap: 15px; max-width: 1200px; margin: 0 auto; } .update-btn { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.3s ease; } .update-btn:hover { background: rgba(255, 255, 255, 0.3); } .close-btn { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: background 0.3s ease; } .close-btn:hover { background: rgba(255, 255, 255, 0.2); } /* Mobile install button */ @media (max-width: 768px) { .install-btn { padding: 8px 12px; font-size: 12px; } }