.jobs-apps-overlay-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    z-index: 100001;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.jobs-apps-overlay-container.active {
    display: flex;
}

.apps-grid-card {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.apps-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.apps-grid-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.apps-grid-close {
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.apps-grid-close:hover {
    color: #333;
}

.apps-grid-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .apps-grid-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 450px) {
    .apps-grid-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.apps-grid-item {
    text-align: center;
}

.apps-grid-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.apps-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.apps-icon-wrapper .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.apps-grid-item:hover .apps-icon-wrapper {
    transform: scale(1.1);
}

.apps-label {
    font-size: 0.8em;
    font-weight: 500;
    color: #666;
    display: block;
}

#jobs-module-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#jobs-module-modal {
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

#jobs-close-module {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}
.quick-apply-form-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--jobs-primary-color);
    font-weight: 500;
}

.quick-apply-form-container textarea {
    border: 1px solid rgba(29, 52, 105, 0.2);
    border-radius: 8px;
    padding: 10px;
    background: transparent;
}

/* Module Modal Specific Content Styling */
.jobs-module-content h3 {
    font-size: 1.6em;
    color: var(--jobs-primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.jobs-module-content p {
    color: #777;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Scrollbar styling for modals */
#jobs-module-modal::-webkit-scrollbar {
    width: 6px;
}
#jobs-module-modal::-webkit-scrollbar-track {
    background: transparent;
}
#jobs-module-modal::-webkit-scrollbar-thumb {
    background: rgba(29, 52, 105, 0.1);
    border-radius: 10px;
}

/* Multi-step Apply */
.quick-apply-multi-step {
    padding: 10px;
}

.apply-steps-header {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.apply-step-indicator {
    font-size: 0.85em;
    font-weight: 600;
    color: #94a3b8;
    position: relative;
    padding-bottom: 10px;
}

.apply-step-indicator.active {
    color: var(--jobs-primary-color);
}

.apply-step-indicator.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--jobs-primary-color);
}

.apply-step-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.apply-step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.select-saved-letter.active {
    background: var(--jobs-primary-color);
    color: white;
}

.profile-preview-box {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rounded-full {
    border-radius: 50%;
}
