/* Hide script templates from view */
script[type="text/template"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

script[type="text/template"] * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Title input container with character counter */
.title-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-input-container input[type="text"] {
    flex: 1;
    padding-right: 60px;
}

/* Standardized Labels and Counters for All Sections */
.form-section .form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #0066ff;
    font-size: 0.9em;
    font-weight: 500;
}

.form-section .form-group .char-counter {
    position: static !important;
    display: inline !important;
    margin-left: 8px !important;
    font-size: 0.9em !important;
    color: #95a5a6 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    font-weight: 500 !important;
    min-width: auto !important;
    vertical-align: baseline !important;
}

.form-section .form-group .char-counter.at-limit {
    color: #e74c3c !important;
    font-weight: bold !important;
}

/* Standardized Input Heights */
.form-section .form-group input[type="text"],
.form-section .form-group input[type="email"],
.form-section .form-group input[type="tel"],
.form-section .form-group input[type="date"],
.form-section .form-group input[type="url"],
.form-section .form-group input[type="number"],
.form-section .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-section .form-group textarea {
    min-height: 80px;
    padding: 8px 10px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

.char-counter {
    position: absolute;
    font-size: 0.8em;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ddd;
    min-width: 40px;
    text-align: center;
}

/* For dynamically created counters in form groups */
.form-group .char-counter {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #95a5a6;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 8px;
    border-radius: 0 4px 4px 0;
    pointer-events: none;
    z-index: 1;
    font-weight: 500;
    min-width: 50px;
}

/* Education section - form-row layout */

/* Education section - form-row layout */
.form-section[data-section="education"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="education"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="education"] .form-row .form-group input,
.form-section[data-section="education"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="education"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Education section - entry actions */
.form-section[data-section="education"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
    align-items: center;
}

.form-section[data-section="education"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="education"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="education"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="education"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="education"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="education"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="education"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="education"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="education"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Education section - full-width fields */
.form-section[data-section="education"] .form-group:not(.form-row .form-group) {
    margin-bottom: 15px;
}

.form-section[data-section="education"] .form-group textarea {
    height: 80px;
    resize: vertical;
}



/* Skills section - form-row layout */
.form-section[data-section="skills"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="skills"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="skills"] .form-row .form-group input,
.form-section[data-section="skills"] .form-row .form-group textarea {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="skills"] .form-row .form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-section[data-section="skills"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Skills section - entry actions */
.form-section[data-section="skills"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
    align-items: center;
}

.form-section[data-section="skills"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="skills"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="skills"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="skills"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="skills"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="skills"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="skills"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="skills"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="skills"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}



/* Certificates section - form-row layout */
.form-section[data-section="certificates"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="certificates"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="certificates"] .form-row .form-group input,
.form-section[data-section="certificates"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="certificates"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Certificates section - entry actions */
.form-section[data-section="certificates"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="certificates"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="certificates"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="certificates"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="certificates"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="certificates"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="certificates"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="certificates"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="certificates"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="certificates"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Professional Experience section - character counter styling */
.form-section[data-section="experience"] .form-group .char-counter {
    position: static;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 500;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    height: auto;
    transform: none;
}

.form-section[data-section="experience"] .form-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0066ff;
}

/* Professional Experience section - form-row layout */
.form-section[data-section="experience"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="experience"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="experience"] .form-row .form-group input,
.form-section[data-section="experience"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="experience"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Professional Experience section - entry actions */
.form-section[data-section="experience"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="experience"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="experience"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="experience"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="experience"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="experience"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="experience"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="experience"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="experience"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="experience"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}



/* Projects section - form-row layout */
.form-section[data-section="projects"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="projects"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="projects"] .form-row .form-group input,
.form-section[data-section="projects"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="projects"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Projects section - entry actions */
.form-section[data-section="projects"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="projects"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="projects"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="projects"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="projects"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="projects"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="projects"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="projects"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="projects"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="projects"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Research Projects section - entry actions styling */
.form-section[data-section="research-projects"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="research-projects"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="research-projects"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="research-projects"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="research-projects"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="research-projects"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="research-projects"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="research-projects"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="research-projects"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="research-projects"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}



/* Portfolio section - form-row layout */
.form-section[data-section="portfolio"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="portfolio"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="portfolio"] .form-row .form-group input,
.form-section[data-section="portfolio"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="portfolio"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Portfolio section - entry actions */
.form-section[data-section="portfolio"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="portfolio"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="portfolio"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="portfolio"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="portfolio"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="portfolio"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="portfolio"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="portfolio"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="portfolio"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="portfolio"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Volunteer Work section - character counter styling */
.form-section[data-section="volunteer"] .form-group .char-counter {
    position: static;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 500;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    height: auto;
    transform: none;
}

.form-section[data-section="volunteer"] .form-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0066ff;
}

/* Volunteer Work section - form-row layout */
.form-section[data-section="volunteer"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="volunteer"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="volunteer"] .form-row .form-group input,
.form-section[data-section="volunteer"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="volunteer"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Volunteer Work section - entry actions */
.form-section[data-section="volunteer"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="volunteer"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="volunteer"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="volunteer"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="volunteer"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="volunteer"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="volunteer"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="volunteer"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="volunteer"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="volunteer"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Awards & Honors section - character counter styling */
.form-section[data-section="awards"] .form-group .char-counter {
    position: static;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 500;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    height: auto;
    transform: none;
}

.form-section[data-section="awards"] .form-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0066ff;
}

/* Awards & Honors section - form-row layout */
.form-section[data-section="awards"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-section[data-section="awards"] .form-row .form-group {
    margin-bottom: 0;
}

.form-section[data-section="awards"] .form-row .form-group input,
.form-section[data-section="awards"] .form-row .form-group select {
    height: 35px;
    padding: 6px 10px;
    font-size: 0.9em;
}

.form-section[data-section="awards"] .form-row .form-group label {
    font-size: 0.85em;
    margin-bottom: 3px;
    color: #0066ff;
}

/* Awards & Honors section - entry actions */
.form-section[data-section="awards"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="awards"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="awards"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="awards"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="awards"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="awards"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="awards"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="awards"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="awards"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="awards"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Hobbies & Interests section - character counter styling */
.form-section[data-section="hobbies"] .form-group .char-counter {
    position: static;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 500;
    color: #6c757d;
    background: none;
    border: none;
    padding: 0;
    min-width: auto;
    height: auto;
    transform: none;
}

.form-section[data-section="hobbies"] .form-group label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0066ff;
}

/* Position counter relative to the input field, not the entire form-group */
.form-group input + .char-counter,
.form-group select + .char-counter {
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 0 4px 4px 0;
}

/* For textarea fields, position counter at bottom right */
.form-group textarea + .char-counter {
    position: absolute;
    bottom: 8px;
    right: 8px;
    top: auto;
    transform: none;
    height: auto;
    min-width: 40px;
}

/* For input fields, position counter to the right */
.form-group input + .char-counter {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

/* Special styling for form-row counters */
.form-row .form-group .char-counter {
    font-size: 0.65em;
    min-width: 40px;
    padding: 0 6px;
}

/* Make form groups relative for absolute positioning */
.form-group {
    position: relative;
}

.char-counter.warning {
    color: #f39c12;
    background: #fef9e7;
    border-color: #f39c12;
}

.char-counter.danger {
    color: #e74c3c;
    background: #fdf2f2;
    border-color: #e74c3c;
}

/* Visual indicator for exceeded character limits */
input.limit-exceeded,
textarea.limit-exceeded {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3) !important;
    background-color: #fdf2f2 !important;
}

/* Body Background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Form Container */
.resume-builder-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Compact Navigation Bar */
.compact-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    min-height: 50px;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.navigation-buttons .left-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation-buttons .center-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.navigation-buttons .right-section {
    display: flex;
    align-items: center;
}

.resume-name-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: help;
    color: #495057;
    font-weight: 500;
    font-size: 0.9em;
}

.resume-name-preview i {
    color: #3498db;
    font-size: 1em;
}

.resume-name-text {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Navigation buttons layout is now handled by the new structure above */

.resume-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
    min-width: 40px;
    text-align: center;
}

.compact-navigation .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 35px;
}

.compact-navigation .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-prev-step {
    background: #2196F3 !important;
    color: white;
    border: none;
}

.compact-prev-step:hover {
    background: #5a6268;
    color: white;
}

.compact-next-step {
    background: #3498db;
    color: white;
    border: none;
}

.compact-next-step:hover {
    background: #2980b9;
    color: white;
}

.compact-next-step:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.compact-next-step:disabled:hover {
    background: #bdc3c7;
    transform: none;
    box-shadow: none;
}



/* Form Sections */
.form-section {
    display: none;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.form-section.active {
    display: block;
}

/* Section Headers */
.section-header {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    margin: 0;
    color: #ff0000;
    font-size: 1.2em;
}

/* Entry Counter */
.entry-counter {
    font-size: 0.85em;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.entry-counter .current-count {
    color: #3498db;
    font-weight: 600;
}

.entry-counter .max-count {
    color: #95a5a6;
    font-weight: 600;
}

.entry-counter.warning {
    background: #fef9e7;
    border-color: #f39c12;
    color: #f39c12;
}

.entry-counter.warning .current-count {
    color: #e67e22;
}

.entry-counter.danger {
    background: #fdf2f2;
    border-color: #e74c3c;
    color: #e74c3c;
}

.entry-counter.danger .current-count {
    color: #c0392b;
}

/* Form Groups */
.form-group {
    margin-bottom: 12px;
    position: relative;
}

/* Form Row Layout for Compact Sections */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Make fields more compact in form rows */
.form-row .form-group input,
.form-row .form-group select,
.form-row .form-group textarea {
    height: 24px; /* Much shorter */
    font-size: 0.75em; /* Smaller font */
    padding: 2px 6px;
    padding-right: 45px; /* Room for counter */
}

.form-row .form-group label {
    font-size: 0.7em; /* Smaller labels */
    margin-bottom: 1px;
    color: #0066ff;
}

/* Make form rows more compact */
.form-row {
    gap: 12px; /* Reduced gap */
    margin-bottom: 10px; /* Reduced margin */
}

/* Ensure counters don't overlap with labels */
.form-row .form-group {
    position: relative;
}

.form-row .form-group .char-counter {
    position: absolute;
    top: 0;
    right: 0;
    height: 24px; /* Match input height exactly */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    min-width: 35px;
    padding: 0 4px;
}

/* Responsive design for form rows */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-row .form-group {
        margin-bottom: 10px;
    }

    /* Education section mobile adjustments */
    .form-section[data-section="education"] .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-section[data-section="education"] .form-row .form-group input,
    .form-section[data-section="education"] .form-row .form-group select {
        height: 40px;
        padding: 8px 12px;
    }

    .form-section[data-section="education"] .entry-actions {
        margin-bottom: 10px;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
    }

    .form-section[data-section="education"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }

    /* Skills section mobile adjustments */
    .form-section[data-section="skills"] .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-section[data-section="skills"] .form-row .form-group input,
    .form-section[data-section="skills"] .form-row .form-group textarea {
        height: 40px;
        padding: 8px 12px;
    }

    .form-section[data-section="skills"] .form-row .form-group textarea {
        height: 80px;
    }

    .form-section[data-section="skills"] .entry-actions {
        margin-bottom: 10px;
    }

    .form-section[data-section="skills"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }

    /* Certificates section mobile adjustments */
    .form-section[data-section="certificates"] .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-section[data-section="certificates"] .form-row .form-group input,
    .form-section[data-section="certificates"] .form-row .form-group select {
        height: 40px;
        padding: 8px 12px;
    }

    .form-section[data-section="certificates"] .entry-actions {
        margin-bottom: 10px;
    }

    .form-section[data-section="certificates"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }

    /* Professional Experience section mobile adjustments */
    .form-section[data-section="experience"] .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-section[data-section="experience"] .form-row .form-group input,
    .form-section[data-section="experience"] .form-row .form-group select {
        height: 40px;
        padding: 8px 12px;
    }

    .form-section[data-section="experience"] .entry-actions {
        margin-bottom: 10px;
    }

    .form-section[data-section="experience"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }
    
    .form-section[data-section="projects"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="projects"] .form-row .form-group input,
    .form-section[data-section="projects"] .form-row .form-group select {
        height: 40px;
        font-size: 16px;
    }
    
    .form-section[data-section="projects"] .entry-actions {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .form-section[data-section="projects"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }
    
    .form-section[data-section="portfolio"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="portfolio"] .form-row .form-group input,
    .form-section[data-section="portfolio"] .form-row .form-group select {
        height: 40px;
        font-size: 16px;
    }
    
    .form-section[data-section="volunteer"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="volunteer"] .form-row .form-group input,
    .form-section[data-section="volunteer"] .form-row .form-group select {
        height: 40px;
        font-size: 16px;
    }
    
    .form-section[data-section="volunteer"] .entry-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-section[data-section="volunteer"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }
    
    .form-section[data-section="awards"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="awards"] .form-row .form-group input,
    .form-section[data-section="awards"] .form-row .form-group select {
        height: 40px;
        font-size: 16px;
    }
    
    .form-section[data-section="awards"] .entry-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-section[data-section="awards"] .entry-actions button {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.8em;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
    }
    
    .form-section[data-section="affiliations"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="affiliations"] .form-row .form-group input,
    .form-section[data-section="affiliations"] .form-row .form-group select {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
    
    .form-section[data-section="affiliations"] .entry-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-section[data-section="affiliations"] .entry-actions button {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.8em;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
    }
    
    .form-section[data-section="publications"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="publications"] .form-row .form-group input,
    .form-section[data-section="publications"] .form-row .form-group select {
        width: 100%;
        padding: 8px;
        font-size: 14px;
    }
    
    .form-section[data-section="publications"] .entry-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-section[data-section="publications"] .entry-actions button {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.8em;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
    }
    
    .form-section[data-section="conferences"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="conferences"] .entry-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-section[data-section="conferences"] .entry-actions button {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.8em;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
    }
    
    .form-section[data-section="references"] .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-section[data-section="references"] .entry-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-section[data-section="references"] .entry-actions button {
        width: 100%;
        padding: 6px 12px;
        font-size: 0.8em;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
    }
}

/* Name fields container */
.name-fields,
.contact-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.name-fields .form-group,
.contact-fields .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Input fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 8px;
    padding-right: 55px; /* Make room for character counter */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    height: 32px; /* Shorter height */
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Address fields grid */
.address-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 12px;
}

.address-fields .form-group:first-child {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: #0066ff;
    font-size: 0.9em;
    font-weight: 500;
}

/* Entry Groups */
.entry-group {
    background: #fff;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.entry-group:last-child {
    margin-bottom: 0;
}

/* Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Add Entry Button */
.add-entry {
    margin-top: 10px;
    padding: 6px 12px;
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.add-entry:hover {
    background: #27ae60;
}

/* Remove Entry Button */
.remove-entry {
    margin-top: 8px;
    padding: 4px 8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.remove-entry:hover {
    background: #c0392b;
}

/* Entry Actions Container */
.entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

/* Move Up/Down Buttons */
/* Move Up/Down Buttons - Global styles removed to prevent conflicts with section-specific styling */

/* Progress Bar */
.progress-bar {
    margin: 15px 0 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 80px; /* Increased height to prevent icon cut-off */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

/* Slider Container */
.progress-steps.slider-mode {
    justify-content: flex-start;
    gap: 0;
    overflow: visible; /* Allow overflow so all steps are visible */
    position: relative;
    padding: 0 80px !important; /* Increase padding for navigation arrows */
    width: 100%; /* Ensure full width */
    /* Prevent layout shift */
    min-height: 60px;
    box-sizing: border-box;
}

.progress-steps.slider-mode .step {
    flex: 0 0 auto; /* Let steps size naturally */
    margin-right: 0; /* No margin to ensure exact 20% width */
    padding: 0; /* Remove padding */
    transition: all 0.3s ease;
    min-width: 40px; /* Ensure minimum width */
    max-width: 60px; /* Ensure maximum width */
    box-sizing: border-box; /* Include padding in width calculation */
    display: flex; /* Show all steps by default */
    opacity: 1; /* Start with full opacity */
    /* Preserve original step styling */
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #d1ecf1;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Prevent clicked steps from disappearing */
.progress-steps.slider-mode .step.clicked {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Steps are now properly styled with visible active/completed states */

/* Enhanced step icon styling in slider mode - all white backgrounds */
.progress-steps.slider-mode .step {
    background: #ffffff !important;
    border: 2px solid #e1e8ed !important;
    transition: all 0.3s ease;
}

/* Step styling - will be overridden by nuclear option at end of file */

.progress-steps.slider-mode .step i {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

/* Individual icon colors for BUILDER SECTION SLIDER - each step has its own color */
.progress-steps .step[data-step="title"] i { color: #3498db; }
.progress-steps .step[data-step="personal"] i { color: #e74c3c; }
.progress-steps .step[data-step="summary"] i { color: #27ae60; }
.progress-steps .step[data-step="education"] i { color: #9b59b6; }
.progress-steps .step[data-step="skills"] i { color: #e67e22; }
.progress-steps .step[data-step="experience"] i { color: #f39c12; }
.progress-steps .step[data-step="certificates"] i { color: #1abc9c; }
.progress-steps .step[data-step="languages"] i { color: #34495e; }
.progress-steps .step[data-step="projects"] i { color: #e67e22; }
.progress-steps .step[data-step="research-projects"] i { color: #e67e22; }
.progress-steps .step[data-step="research-interests"] i { color: #f39c12; }
.progress-steps .step[data-step="portfolio"] i { color: #8e44ad; }
.progress-steps .step[data-step="volunteer"] i { color: #16a085; }
.progress-steps .step[data-step="awards"] i { color: #f1c40f; }
.progress-steps .step[data-step="hobbies"] i { color: #e91e63; }
.progress-steps .step[data-step="affiliations"] i { color: #607d8b; }
.progress-steps .step[data-step="publications"] i { color: #795548; }
.progress-steps .step[data-step="conferences"] i { color: #3f51b5; }
.progress-steps .step[data-step="profile-photo"] i { color: #00bcd4; }
.progress-steps .step[data-step="references"] i { color: #4caf50; }
.progress-steps .step[data-step="availability"] i { color: #ff9800; }
.progress-steps .step[data-step="public-resume"] i { color: #6c757d; }

/* Hover effects removed - not needed for mobile/accessibility */

/* Active state - white text on colored background */
/* Basic active state - keep it simple */
.progress-steps.slider-mode .step.active {
    background: #3498db;
    border-color: #3498db;
}

.progress-steps.slider-mode .step.active i {
    color: inherit !important; /* Keep the individual icon color when active */
}

/* Completed state removed - too complex for basic plugin */

/* Hover effects removed - not needed for mobile/accessibility */



/* Slider Navigation */
.progress-steps.slider-mode .slider-nav {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    border: 2px solid #3498db !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    z-index: 999 !important;
    transition: none !important;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3) !important;
    margin: 0 !important;
    /* Prevent any interference */
    pointer-events: auto !important;
    will-change: auto !important;
    backface-visibility: visible !important;
    /* Debug: Make arrows more visible */
    /* outline: 3px solid red !important; */
    /* Force positioning reset */
    float: none !important;
    clear: none !important;
    display: block !important;
}

.slider-nav:hover {
    background: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.progress-steps.slider-mode .slider-nav.prev {
    left: 30px !important;
    transform: translateY(-50%) !important;
    transition: none !important;
    position: absolute !important;
    /* Override any parent transforms */
    transform-origin: center center !important;
    transform-style: flat !important;
    /* Lock position to prevent movement */
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    /* High z-index to stay on top */
    z-index: 999 !important;
}

.progress-steps.slider-mode .slider-nav.next {
    right: 30px !important;
    transform: translateY(-50%) !important;
    transition: none !important;
    position: absolute !important;
    /* Override any parent transforms */
    transform-origin: center center !important;
    transform-style: flat !important;
    /* Lock position to prevent movement */
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    /* Force right positioning and prevent left positioning */
    left: unset !important;
    left: initial !important;
    /* Ensure no other positioning interferes */
    float: none !important;
    display: block !important;
    /* High z-index to stay on top */
    z-index: 999 !important;
}

.slider-nav i {
    color: #3498db;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    width: 100%;
    transition: color 0.3s ease;
}

.slider-nav:hover i {
    color: #ffffff;
}

.slider-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: none;
}

.slider-nav:disabled:hover {
    transform: translateY(-50%);
    background: #f8f9fa;
}

.slider-nav:disabled i {
    color: #6c757d;
}

/* Show navigation when slider is active */
.progress-steps.slider-mode .slider-nav {
    display: block;
}

/* Steps Container */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.progress-steps.slider-mode .steps-container {
    display: flex; /* Essential: Enable flexbox layout */
    justify-content: center; /* Center the steps */
    gap: 20px; /* Add gap between steps */
    transform: translateX(0);
    width: 100%; /* Take full width of parent */
    margin: 0 auto;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow: visible !important; /* Allow overflow for proper rendering */
    padding: 5px 0; /* Add padding to prevent clipping */
}



/* Slider Indicators */
.slider-indicators {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-indicators.active {
    display: flex;
}

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: #3498db;
    transform: scale(1.2);
}

.slider-indicator:hover {
    background: #3498db;
    opacity: 0.7;
}

/* Mobile Step Selector */
.mobile-step-selector {
    display: none;
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Mobile dropdown backdrop overlay */
.mobile-step-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-step-dropdown.active::before {
    opacity: 1;
}

/* Prevent body scroll when dropdown is open */
body.dropdown-open {
    overflow: hidden;
}

.mobile-step-toggle {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-step-toggle:hover {
    background: #f8f9fa;
    border-color: #2980b9;
}

.mobile-step-toggle i:first-child {
    margin-right: 8px;
    color: #3498db;
}

.mobile-step-toggle i:last-child {
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

.mobile-step-toggle.active i:last-child {
    transform: rotate(180deg);
}

.current-step-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.mobile-step-dropdown {
    position: fixed; /* Change to fixed positioning to go over all content */
    top: auto; /* Remove top positioning */
    left: 0;
    right: 0;
    bottom: 0; /* Position from bottom for full-page dropdown */
    background: #fff;
    border: 2px solid #3498db;
    border-top: 2px solid #3498db; /* Add top border since it's now separate */
    border-radius: 8px 8px 0 0; /* Round top corners instead of bottom */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15); /* Shadow above the dropdown */
    z-index: 9999; /* Much higher z-index to go over everything */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    transform: translateY(100%); /* Start hidden below viewport */
    /* Force hidden by default */
    display: none;
}

.mobile-step-dropdown.active {
    max-height: 80vh; /* Use viewport height instead of fixed pixels */
    overflow-y: auto;
    transform: translateY(0); /* Slide up from bottom */
    padding-top: 60px; /* Add top padding for close button */
    /* Force visible when active */
    display: block;
}

.step-option {
    padding: 16px 20px; /* Increased padding for better mobile touch targets */
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #ecf0f1;
    font-size: 16px; /* Ensure readable font size on mobile */
}

.step-option:last-child {
    border-bottom: none;
}

.step-option:hover {
    background: #f8f9fa;
}

.step-option.active {
    background: #3498db;
    color: #2c3e50;
}

/* Mobile dropdown close button */
.close-dropdown {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    z-index: 10000;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-dropdown:hover {
    color: #34495e;
    background: #f8f9fa;
}

.step-option i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Mobile step option colors - consistent dark colors for readability */
.step-option[data-step="title"] i { color: #2c3e50; }
.step-option[data-step="personal"] i { color: #2c3e50; }
.step-option[data-step="summary"] i { color: #2c3e50; }
.step-option[data-step="education"] i { color: #2c3e50; }
.step-option[data-step="skills"] i { color: #2c3e50; }
.step-option[data-step="experience"] i { color: #2c3e50; }
.step-option[data-step="certificates"] i { color: #2c3e50; }
.step-option[data-step="languages"] i { color: #2c3e50; }
.step-option[data-step="projects"] i { color: #2c3e50; }
.step-option[data-step="portfolio"] i { color: #2c3e50; }
.step-option[data-step="volunteer"] i { color: #2c3e50; }
.step-option[data-step="awards"] i { color: #2c3e50; }
.step-option[data-step="hobbies"] i { color: #2c3e50; }
.step-option[data-step="affiliations"] i { color: #2c3e50; }
.step-option[data-step="publications"] i { color: #2c3e50; }
.step-option[data-step="conferences"] i { color: #2c3e50; }
.step-option[data-step="profile-photo"] i { color: #2c3e50; }
.step-option[data-step="references"] i { color: #2c3e50; }
.step-option[data-step="availability"] i { color: #2c3e50; }
.step-option[data-step="public-resume"] i { color: #2c3e50 !important; }

/* Hover effects removed - not needed for mobile/accessibility */

.step-option span {
    font-size: 14px;
    font-weight: 500;
}

/* Desktop Only */
.desktop-only {
    display: flex;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: #ffffff !important; /* Force white background */
    border: 2px solid #d1ecf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Force ALL steps to be white - override any inline styles */
.step,
.step[data-step],
.step[data-step*=""] {
    background: #ffffff !important;
    border: 2px solid #d1ecf1 !important;
}

/* Individual icon colors will be set by specific data-step rules below */

/* Nuclear option - force ALL step variations to be white */
.progress-steps .step,
.progress-steps.slider-mode .step,
.step,
.step[data-step],
.step[data-step*=""],
.step:not(.active),
.step:not(.completed),
.step:not(.public),
.step:not(.private) {
    background: #ffffff !important;
    border: 2px solid #d1ecf1 !important;
}

/* Force ALL mobile step options to be white too */
.step-option,
.step-option[data-step],
.step-option[data-step*=""] {
    background: #ffffff !important;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step i {
    font-size: 1.2em;
    transition: all 0.3s ease;
}

/* Individual icon colors for desktop steps - each step has its own color */
.step[data-step="title"] i { color: #3498db; }
.step[data-step="personal"] i { color: #e74c3c; }
.step[data-step="summary"] i { color: #27ae60; }
.step[data-step="education"] i { color: #9b59b6; }
.step[data-step="skills"] i { color: #e67e22; }
.step[data-step="experience"] i { color: #f39c12; }
.step[data-step="certificates"] i { color: #1abc9c; }
.step[data-step="languages"] i { color: #34495e; }
.step[data-step="projects"] i { color: #e67e22; }
.step[data-step="research-projects"] i { color: #e67e22; }
.step[data-step="research-interests"] i { color: #f39c12; }
.step[data-step="portfolio"] i { color: #8e44ad; }
.step[data-step="volunteer"] i { color: #16a085; }
.step[data-step="awards"] i { color: #f1c40f; }
.step[data-step="hobbies"] i { color: #e91e63; }
.step[data-step="affiliations"] i { color: #607d8b; }
.step[data-step="publications"] i { color: #795548; }
.step[data-step="conferences"] i { color: #3f51b5; }
.step[data-step="profile-photo"] i { color: #00bcd4; }
.step[data-step="references"] i { color: #4caf50; }
.step[data-step="availability"] i { color: #ff9800; }
.step[data-step="public-resume"] i { color: #6c757d; }

/* Hover effects removed - not needed for mobile/accessibility */

.step.active {
    border-color: #3498db;
    background: #3498db;
}

.step.active i {
    color: #fff;
    position: relative;
    z-index: 11;
}

/* Completed state removed - too complex for basic plugin */

/* Hover effects removed - not needed for mobile/accessibility */

/* Enhanced 8th Step - Visibility Toggle Styles */
.step.visibility-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effects removed - not needed for mobile/accessibility */

/* Public state removed - too complex for basic plugin */

/* Hover effects removed - not needed for mobile/accessibility */

/* Private state removed - too complex for basic plugin */

/* Hover effects removed - not needed for mobile/accessibility */

.step.visibility-toggle .step-tooltip {
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    max-width: 200px;
    text-align: center;
}

/* Enhanced Public Resume Section */
.visibility-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.visibility-section.public {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
}

.visibility-section.private {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.visibility-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.visibility-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.visibility-icon.public {
    background: #4CAF50;
}

.visibility-icon.private {
    background: #f44336;
}

.visibility-status {
    flex: 1;
}

.visibility-status h3 {
    margin: 0 0 5px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.visibility-status p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.visibility-toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visibility-toggle-btn.public {
    background: #f44336;
    color: white;
}

.visibility-toggle-btn.public:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.visibility-toggle-btn.private {
    background: #4CAF50;
    color: white;
}

.visibility-toggle-btn.private:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.visibility-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.visibility-detail {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
}

.visibility-detail h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #333;
}

.visibility-detail p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.visibility-detail.public {
    border-left-color: #4CAF50;
}

.visibility-detail.private {
    border-left-color: #f44336;
}

.share-link-container {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.share-link-container h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #333;
}

.share-link-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-link-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: #f8f9fa;
}

.copy-link-btn {
    padding: 8px 12px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #005a87;
}

.copy-link-btn.copied {
    background: #4CAF50;
}

.view-public-btn {
    padding: 8px 12px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.view-public-btn:hover {
    background: #1e7e34;
}

/* Responsive Design for Visibility Section */
@media (max-width: 768px) {
    .visibility-details {
        grid-template-columns: 1fr;
    }
    
    .share-link-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .visibility-header {
        flex-direction: column;
        text-align: center;
    }
}

.step-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Hover effects removed - not needed for mobile/accessibility */

.step-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #2c3e50;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Single column checkbox layout for availability preferences */
.form-section[data-section="availability"] .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.form-section[data-section="availability"] .checkbox-group label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 4px 0;
    white-space: nowrap;
    min-width: 0;
}

.form-section[data-section="availability"] .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

/* Two-column checkbox layout */
.checkbox-group.two-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.checkbox-group.two-column .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group.two-column .column label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 4px 0;
}

.checkbox-group.two-column .column input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resume-builder-container {
        padding: 15px;
    }

    .form-section {
        padding: 12px;
    }

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

    .entry-group {
        padding: 10px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    /* Mobile Step Selector */
    .mobile-step-selector {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Hide desktop progress steps on mobile */
    .progress-steps.desktop-only {
        display: none;
    }

    /* Mobile slider improvements */
    .progress-steps.slider-mode {
        padding: 0 45px; /* Increase padding on mobile */
    }

    .progress-steps.slider-mode .steps-container {
        width: 100%; /* Take full width of parent */
        gap: 15px; /* Smaller gap on mobile */
    }

    .progress-steps.slider-mode .step {
        flex: 0 0 auto; /* Let steps size naturally */
        margin-right: 0; /* No margin to ensure exact 20% width */
        padding: 0; /* Remove padding */
        min-width: 35px; /* Smaller minimum on mobile */
        max-width: 50px; /* Smaller maximum on mobile */
        box-sizing: border-box; /* Include padding in width calculation */
        display: flex; /* Show all steps by default */
        width: 35px; /* Smaller on mobile */
        height: 35px; /* Smaller on mobile */
    }

    .slider-nav {
        width: 32px;
        height: 32px;
    }

    .slider-nav.prev {
        left: 5px;
    }

    .slider-nav.next {
        right: 5px;
    }

    .slider-nav i {
        font-size: 14px;
        line-height: 28px;
    }
    
    /* Mobile responsive for two-column checkboxes */
    .checkbox-group.two-column {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkbox-group.two-column .column {
        gap: 6px;
    }
    
    /* Make all two-column layouts single column on mobile */
    .name-fields,
    .contact-fields {
        flex-direction: column;
        gap: 10px;
    }
    
    .address-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Ensure all section-specific form rows are single column */
    .form-section[data-section="education"] .form-row,
    .form-section[data-section="skills"] .form-row,
    .form-section[data-section="certificates"] .form-row,
    .form-section[data-section="experience"] .form-row,
    .form-section[data-section="projects"] .form-row,
    .form-section[data-section="portfolio"] .form-row,
    .form-section[data-section="volunteer"] .form-row,
    .form-section[data-section="awards"] .form-row,
    .form-section[data-section="affiliations"] .form-row,
    .form-section[data-section="publications"] .form-row,
    .form-section[data-section="conferences"] .form-row,
    .form-section[data-section="references"] .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }


    
    .compact-navigation {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        min-height: auto;
    }
    
    .resume-name-preview {
        justify-content: center;
        font-size: 0.85em;
    }
    
    .resume-name-text {
        max-width: 150px;
    }
    
    .navigation-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .navigation-buttons .left-section,
    .navigation-buttons .center-section,
    .navigation-buttons .right-section {
        width: 100%;
        justify-content: center;
    }
    
    .compact-navigation .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .resume-counter {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 35px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-overlay p {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff0000;
}

/* Resume preview styles */
.resume-preview {
    padding: 20px;
    background: #fff;
}

.resume-preview h1 {
    color: #0073aa;
    margin-bottom: 20px;
    text-align: center;
}

.resume-preview h2 {
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    margin-top: 30px;
}

.education-item,
.job-item,
.certificate-item,
.reference-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.education-item h3,
.job-item h3,
.certificate-item h3,
.reference-item h3 {
    color: #555;
    margin-bottom: 5px;
}

/* Dynamic form entries */
.education-entry,
.job-entry,
.certificate-entry,
.reference-entry {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    position: relative;
}

/* Form Progress */
.form-progress {
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Navigation Buttons */
.form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-navigation button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prev-step {
    background: #2196F3 !important;
    color: white;
}

.next-step {
    background: #4CAF50;
    color: white;
}

.save-resume {
    background: #2196F3;
    color: white;
}

.preview-resume {
    background: #FF9800;
    color: white;
}

.export-pdf {
    background: #f44336;
    color: white;
}

.form-navigation button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.close-preview {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-preview:hover {
    color: #333;
}

/* Preview Modal */
.preview-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
}

.preview-empty-state h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.preview-empty-state p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.preview-empty-state p:last-child {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

/* Admin Mode Title Field */
#resume_title[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #ddd;
}

.admin-title-notice {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

/* Profile Photo Section */
.profile-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.profile-photo-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar Placeholder Styles */
.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.avatar-placeholder i {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive avatar placeholder */
@media (max-width: 768px) {
    .avatar-placeholder {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .avatar-placeholder {
        font-size: 50px;
    }
}

/* Avatar placeholder animation */
@keyframes avatarPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.avatar-placeholder {
    animation: avatarPulse 3s ease-in-out infinite;
}

.avatar-placeholder:hover {
    animation: none;
}

.profile-photo-container .form-group {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.profile-photo-container input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.help-text {
    margin-top: 8px;
    color: #666;
    font-size: 0.85em;
}

.next-step.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.next-step.disabled:hover {
    background-color: #cccccc;
    transform: none;
}

#auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 14px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#auto-save-indicator:before {
    content: '✓';
    margin-right: 8px;
}

/* Hide Test Save and Preview buttons */
.btn.test-save,
.preview-resume {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hide Export PDF button */
.export-pdf {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}



/* Resume Preview Mode */
.resume-preview-mode {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.preview-header h2 i {
    margin-right: 10px;
    color: #007cba;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.resume-preview-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Print styles for preview mode */
@media print {
    .preview-header {
        display: none !important;
    }
    
    .resume-preview-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
    }
}

.resume-count-info {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #1e88e5;
}

.resume-count-info p {
    margin: 0;
    color: #1e88e5;
    font-size: 16px;
    font-weight: 500;
}

.resume-limit-reached {
    background-color: #f8f9fa;
    border: 1px solid #1e88e5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    max-width: 90%;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    overflow: hidden;
}

.resume-limit-reached .limit-header {
    margin-bottom: 20px;
}

.resume-limit-reached .limit-header i {
    font-size: 32px;
    color: #1e88e5;
    margin-bottom: 15px;
    display: block;
}

.resume-limit-reached .limit-header h3 {
    color: #1e88e5;
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.resume-limit-reached .limit-header p {
    color: #1e88e5;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.resume-limit-reached .limit-count {
    margin-bottom: 20px;
}

.resume-limit-reached .limit-count p {
    color: #1e88e5;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.resume-limit-reached p {
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
}

/* Mobile-specific styles for resume limit message */
@media screen and (max-width: 768px) {
    .resume-limit-reached {
        max-width: 98% !important;
        width: 98% !important;
        padding: 20px 15px !important;
        margin: 20px auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .resume-limit-reached .limit-header h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        padding: 0 5px !important;
        margin: 10px 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .resume-limit-reached .limit-header p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
        margin: 8px 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .resume-limit-reached .limit-count p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
        margin: 8px 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Force vertical stacking on mobile */
    .resume-limit-reached > div {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }
    
    .resume-limit-reached .button {
        display: block !important;
        width: 100% !important;
        max-width: 180px !important;
        margin: 15px auto !important;
        text-align: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        background-color: #1e88e5 !important;
        color: white !important;
        padding: 12px 20px !important;
        border-radius: 6px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure button container is visible */
    .resume-limit-reached a.button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 180px !important;
        margin: 15px auto !important;
    }
    
    /* Force all content to fit within container */
    .resume-limit-reached * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

.resume-limit-reached .button {
    display: inline-block !important;
    background-color: #1e88e5 !important;
    color: white !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
}

.resume-limit-reached .button:hover {
    background-color: #1565c0 !important;
}

.visibility-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Disabled add entry buttons */
.add-entry:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

.add-entry:disabled:hover {
    background-color: #cccccc;
    transform: none !important;
}

/* ============================================================================
   PRINT INSTRUCTION BUTTON STYLES
   ============================================================================
   
   FUTURE SELF NOTE: These styles create a friendly, gentle, light glowy green 
   floating button positioned at the bottom right of the screen. The button 
   shows a modal with print instructions to help users configure their print 
   settings correctly for optimal resume printing.
   ============================================================================ */

/* Floating Print Instruction Button */
.print-instruction-button {
    position: fixed;
    bottom: 80px;
    right: 40px;
    z-index: 999;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.print-instruction-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.print-instruction-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(76, 175, 80, 0.3);
}

.print-instruction-button i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}



/* Print Instruction Modal */
.print-instruction-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.print-instruction-modal.active {
    opacity: 1;
    visibility: visible;
}

.print-instruction-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.print-instruction-modal.active .print-instruction-content {
    transform: scale(1);
}

.print-instruction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.print-instruction-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: white;
}

.print-instruction-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.print-instruction-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.print-instruction-body {
    padding: 30px;
}

.print-instruction-body p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}

.print-instruction-image {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.print-instruction-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.print-instruction-steps {
    margin-top: 25px;
}

.print-instruction-steps h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.print-instruction-steps ol {
    padding-left: 20px;
}

.print-instruction-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
    font-size: 1.05em;
}

.print-instruction-steps li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Modal open state for body */
body.modal-open {
    overflow: hidden;
}

/* Floating Button Hover Effects */
.floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.floating-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Template Selection Button */
.floating-template-selector-btn {
    position: fixed;
    bottom: 180px;
    right: 80px;
    z-index: 1000;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-template-selector-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
    background: #1e7e34;
}

.floating-template-selector-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(40, 167, 69, 0.3);
}

.floating-template-selector-btn i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Floating Default Resume Button */
.floating-default-resume-btn {
    position: fixed;
    bottom: 100px;
    right: 80px;
    z-index: 1000;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-default-resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    background: #0056b3;
}

.floating-default-resume-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(0, 123, 255, 0.3);
}

.floating-default-resume-btn i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    
    .print-instruction-button {
        bottom: 70px;
        right: 15px;
        padding: 12px;
        font-size: 14px;
        width: 45px;
        height: 45px;
    }
    
    .floating-button {
        width: 45px !important;
        height: 45px !important;
        font-size: 14px !important;
    }
    
    .floating-template-selector-btn {
        bottom: 140px;
        right: 60px;
        padding: 10px;
        font-size: 12px;
        width: 35px;
        height: 35px;
    }
    
    .floating-default-resume-btn {
        bottom: 80px;
        right: 60px;
        padding: 10px;
        font-size: 12px;
        width: 35px;
        height: 35px;
    }
    
    .print-instruction-content {
        width: 95%;
        margin: 20px;
    }
    
    .print-instruction-header {
        padding: 20px 25px 15px;
    }
    
    .print-instruction-header h3 {
        font-size: 1.3em;
    }
    
    .print-instruction-body {
        padding: 20px 25px;
    }
    
    .print-instruction-image {
        padding: 15px;
    }
}

/* Hidden class for floating button visibility control */
.hidden {
    display: none !important;
}

/* Upload Limit Info Styles */
.upload-limit-info {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.upload-limit-info i {
    margin-right: 4px;
    color: #007cba;
}

/* Image Editor Modal Styles */
.image-editor-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999 !important;
    backdrop-filter: blur(5px);
}

.image-editor-modal.show {
    display: block !important;
}

.image-editor-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.image-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.image-editor-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.close-editor {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-editor:hover {
    background: #e0e0e0;
    color: #333;
}

.image-editor-body {
    padding: 20px;
    text-align: center;
}

.image-container {
    margin-bottom: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#editable-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    object-fit: contain;
    width: auto;
    height: auto;
}

.image-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.image-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-controls button:hover {
    background: #f0f0f0;
    border-color: #007cba;
}

.crop-controls {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.crop-controls p {
    margin: 0 0 10px 0;
    color: #666;
    font-style: italic;
}

.crop-controls button {
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.crop-controls button:hover {
    background: #f0f0f0;
}

.image-editor-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.image-editor-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-edited-image {
    background: #28a745;
    color: white;
}

.save-edited-image:hover {
    background: #218838;
}

.cancel-editing {
    background: #6c757d;
    color: white;
}

.cancel-editing:hover {
    background: #5a6268;
}

/* Crop overlay styles */
.crop-overlay {
    position: absolute;
    border: 2px solid #007cba;
    background: rgba(0, 123, 255, 0.1);
    cursor: move;
    z-index: 1000;
    min-width: 50px;
    min-height: 50px;
    user-select: none;
    pointer-events: auto;
}

.image-container {
    position: relative;
    overflow: visible;
    user-select: none;
}

#editable-image {
    user-select: none;
    pointer-events: none;
}

.crop-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #007cba;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.crop-handle.nw { top: -5px; left: -5px; cursor: nw-resize; }
.crop-handle.ne { top: -5px; right: -5px; cursor: ne-resize; }
.crop-handle.sw { bottom: -5px; left: -5px; cursor: sw-resize; }
.crop-handle.se { bottom: -5px; right: -5px; cursor: se-resize; }

/* Force lock icon color for public-resume step */
.progress-steps.slider-mode .step[data-step="public-resume"] i.fa-lock,
.step[data-step="public-resume"] i.fa-lock,
.step-option[data-step="public-resume"] i.fa-lock {
    color: #6c757d !important;
}

.progress-steps.slider-mode .step[data-step="public-resume"]:hover i.fa-lock,
.step[data-step="public-resume"]:hover i.fa-lock,
.step-option[data-step="public-resume"]:hover i.fa-lock {
    color: #495057 !important;
}

/* Comprehensive education styling for all templates */
.printable-education-item .school,

/* Certificate Compact Format Styling */
.certificate-essential {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.certificate-details {
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
    margin-top: 3px;
}

/* Digital templates - compact certificate styling */
.digital-certificate-item .certificate-essential,
.creative-certificate-item .certificate-essential {
    color: #666;
    margin-bottom: 8px;
}

.digital-certificate-item .certificate-details,
.creative-certificate-item .certificate-details {
    color: #555;
    margin-top: 5px;
}

/* Printable templates - compact certificate styling */
.printable-certificate-item .certificate-essential,
.professional-certificate-item .certificate-essential {
    color: #666;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.printable-certificate-item .certificate-details,
.professional-certificate-item .certificate-details {
    color: #555;
    margin-top: 4px;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Modern template specific styling */
.modern-certificate-essential {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.modern-certificate-details {
    color: #555;
    margin-top: 5px;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Certificate links styling */
.certificate-links {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.certificate-links a {
    color: #3498db;
    text-decoration: none;
}

.certificate-links a:hover {
    text-decoration: underline;
}

/* Template-specific link styling */
.digital-certificate-item .certificate-links,
.creative-certificate-item .certificate-links {
    margin-top: 6px;
}

.printable-certificate-item .certificate-links,
.professional-certificate-item .certificate-links {
    margin-top: 4px;
    font-size: 0.75em;
}

.modern-certificate-links {
    margin-top: 6px;
    font-size: 0.8em;
    color: #666;
}

/* Language Compact Format Styling */
.language-essential {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-style: italic;
}

.language-details {
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
    margin-top: 3px;
}

/* Digital templates - compact language styling */
.digital-language-item .language-essential,
.creative-language-item .language-essential {
    color: #666;
    margin-bottom: 8px;
}

.digital-language-item .language-details,
.creative-language-item .language-details {
    color: #555;
    margin-top: 5px;
}

/* Printable templates - compact language styling */
.printable-language-item .language-essential,
.professional-language-item .language-essential {
    color: #666;
    margin-bottom: 6px;
    font-size: 0.9em;
}

.printable-language-item .language-details,
.professional-language-item .language-details {
    color: #555;
    margin-top: 4px;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Language links styling */
.language-links {
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
}

.language-links a {
    color: #3498db;
    text-decoration: none;
}

.language-links a:hover {
    text-decoration: underline;
}
.professional-education-item .school,
.modern-degree,
.digital-education-item .school,
.creative-education-item .school,
.education-entry .subject {
    font-weight: normal !important;
    font-style: italic !important;
}

/* Professional Affiliations Section */
.form-section[data-section="affiliations"] .char-counter {
    position: static;
    display: inline;
    margin-left: 5px;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    vertical-align: baseline;
}

.form-section[data-section="affiliations"] .char-counter.at-limit {
    color: #e74c3c;
    font-weight: bold;
}

.form-section[data-section="affiliations"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section[data-section="affiliations"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="affiliations"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="affiliations"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="affiliations"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="affiliations"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="affiliations"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="affiliations"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="affiliations"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="affiliations"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="affiliations"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Publications Section */
.form-section[data-section="publications"] .char-counter {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.form-section[data-section="publications"] .char-counter.at-limit {
    color: #e74c3c;
    font-weight: bold;
}

.form-section[data-section="publications"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section[data-section="publications"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="publications"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="publications"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="publications"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="publications"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="publications"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="publications"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="publications"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="publications"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="publications"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Conferences Section */
.form-section[data-section="conferences"] .char-counter {
    position: static;
    display: inline;
    margin-left: 5px;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    vertical-align: baseline;
}

.form-section[data-section="conferences"] .char-counter.at-limit {
    color: #e74c3c;
    font-weight: bold;
}

.form-section[data-section="conferences"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section[data-section="conferences"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="conferences"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="conferences"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="conferences"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="conferences"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="conferences"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="conferences"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="conferences"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="conferences"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="conferences"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* References Section */
.form-section[data-section="references"] .char-counter {
    position: static;
    display: inline;
    margin-left: 5px;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    vertical-align: baseline;
}

.form-section[data-section="references"] .char-counter.at-limit {
    color: #e74c3c;
    font-weight: bold;
}

.form-section[data-section="references"] .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-section[data-section="references"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.form-section[data-section="references"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="references"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="references"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="references"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="references"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="references"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="references"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="references"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="references"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Availability Section */
.form-section[data-section="availability"] .char-counter {
    position: static;
    display: inline;
    margin-left: 5px;
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: auto;
    vertical-align: baseline;
}

.form-section[data-section="availability"] .char-counter.at-limit {
    color: #e74c3c;
    font-weight: bold;
} 

/* Resume Builder Loading Indicator */
.resume-builder-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-content i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.loading-content p {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #2c3e50;
}

.loading-content small {
    font-size: 0.9rem;
    color: #7f8c8d;
    opacity: 0.8;
}

/* Hide loading indicator after initialization */
.resume-builder-loading.hidden {
    display: none;
}

/* Mobile Landscape Prompt */
.mobile-landscape-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 99999;
    text-align: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.landscape-prompt-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    padding: 30px 20px;
}

.phone-icon {
    position: relative;
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.rotate-arrow {
    position: absolute;
    top: -10px;
    right: -20px;
    font-size: 1.5rem;
    color: #ffd700;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.mobile-landscape-prompt h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.mobile-landscape-prompt p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

.landscape-benefits {
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1rem;
}

.benefit i {
    color: #4ade80;
    margin-right: 10px;
    font-size: 1.1rem;
}

.dismiss-prompt {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.dismiss-prompt:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Show prompt only on mobile portrait */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .mobile-landscape-prompt {
        display: block;
    }
}

/* Hide prompt on landscape or larger screens */
@media screen and (min-width: 769px), (orientation: landscape) {
    .mobile-landscape-prompt {
        display: none !important;
    }
}

/* Mobile-specific optimizations for landscape mode */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .resume-builder-container {
        padding: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px 12px;
    }
    
    .step-indicators {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .step-indicator {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Login Required Message Styles */
.login-required-message {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-required-message h2 {
    color: #856404;
    margin: 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.login-required-message p {
    color: #856404;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.login-required-message .button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.login-required-message .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-required-message .button:first-of-type {
    background-color: #1e88e5;
    color: white;
}

.login-required-message .button:first-of-type:hover {
    background-color: #1565c0;
}

.login-required-message .button:last-of-type {
    background-color: #28a745;
    color: white;
}

.login-required-message .button:last-of-type:hover {
    background-color: #1e7e34;
}

.login-required-message i.fa-lock {
    font-size: 48px;
    color: #856404;
    margin-bottom: 15px;
    display: block;
}

.login-required-message .benefits-list {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ffeaa7;
}

.login-required-message .benefits-list p {
    color: #856404;
    font-size: 14px;
    margin: 0;
}

/* Responsive design for login message */
@media (max-width: 768px) {
    .login-required-message {
        margin: 20px;
        padding: 20px;
    }
    
    .login-required-message h2 {
        font-size: 20px;
    }
    
    .login-required-message p {
        font-size: 14px;
    }
    
    .login-required-message .button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Professional Links Section Styling */
.professional-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

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

.professional-links .form-group:last-child {
    margin-bottom: 0;
}

.professional-links .help-text {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
    display: block;
    font-style: italic;
}

.professional-links input[type="url"] {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.professional-links input[type="url"]:focus {
    background-color: #fff;
    border-color: #0066ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

/* Research Interests Subsection Styling */
.research-interests-subsection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Research Interests section - entry actions */
.form-section[data-section="research-interests"] .entry-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
    align-items: center;
}

.form-section[data-section="research-interests"] .entry-actions button {
    padding: 0;
    font-size: 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    height: 32px;
    width: 32px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0;
    position: relative;
    top: 0;
    left: 0;
}

.form-section[data-section="research-interests"] .entry-actions button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.form-section[data-section="research-interests"] .entry-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-section[data-section="research-interests"] .entry-actions .move-up {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.form-section[data-section="research-interests"] .entry-actions .move-up:hover {
    background: #218838;
    border-color: #1e7e34;
}

.form-section[data-section="research-interests"] .entry-actions .move-down {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-section[data-section="research-interests"] .entry-actions .move-down:hover {
    background: #0056b3;
    border-color: #004085;
}

.form-section[data-section="research-interests"] .entry-actions .remove-entry {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.form-section[data-section="research-interests"] .entry-actions .remove-entry:hover {
    background: #c82333;
    border-color: #bd2130;
}

.research-interests-subsection .section-header h4 {
    color: #ff0000;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.research-interests-subsection .section-description {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-style: italic;
}

.research-interests-entries .entry {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.research-interests-entries .entry:hover {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.research-interests-subsection .add-research-interest {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.research-interests-subsection .add-research-interest:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

.research-interests-subsection .add-research-interest:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Step styling now properly configured with light blue borders */

/* Hide "My Resumes" button on mobile to save space */
@media (max-width: 768px) {
    .my-resumes,
    button[onclick*="resume-dashboard"] {
        display: none !important;
    }

    /* Research Interests section mobile adjustments */
    .form-section[data-section="research-interests"] .entry-actions {
        margin-bottom: 10px;
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
    }

    .form-section[data-section="research-interests"] .entry-actions button {
        padding: 0;
        font-size: 16px;
        border: 1px solid #ddd;
        background: #f8f9fa;
        color: #495057;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        height: 32px;
        width: 32px;
        box-sizing: border-box;
        margin: 0;
        position: relative;
        top: 0;
        left: 0;
    }
}

