/* custom-employer-styles.css */

.eb-container {
    width: 95vw;
    max-width: 1400px;
    margin: 140px auto 30px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #f1f5f9;
}

/* Progress Steps */
.eb-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 30px;
    max-width: 100%;
    width: 100%;
    position: relative;
}

.eb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.eb-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.eb-progress-step.active .eb-progress-dot {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.eb-progress-step.completed .eb-progress-dot {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.eb-progress-line-bg {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    height: 4px;
    background: #cbd5e1;
    z-index: 1;
    border-radius: 2px;
}

.eb-progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #10b981;
    z-index: 1;
    transition: width 0.4s ease;
    width: 0%;
    border-radius: 2px;
}

/* Titles */
.eb-header {
    text-align: center;
    margin-bottom: 25px;
}

.eb-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.eb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Grid & Inputs */
.eb-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
    margin-bottom: 20px;
}

.eb-step[data-step="3"] .eb-form-grid {
    grid-template-columns: repeat(2, 1fr);
}

.eb-form-group > label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.eb-form-group {
    display: flex;
    flex-direction: column;
}

.eb-form-group.full-width {
    grid-column: span 3;
}

.eb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.eb-input-wrapper input,
.eb-input-wrapper select,
.eb-input-wrapper textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid #94a3b8;
    background: #ffffff;
    color: #475569;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

/* Custom styled select dropdown */
.eb-input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpolygon points='5 9 19 9 12 16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

.eb-input-wrapper textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 16px;
}

/* Placeholders */
.eb-input-wrapper input::placeholder,
.eb-input-wrapper textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.eb-input-wrapper input:focus,
.eb-input-wrapper select:focus,
.eb-input-wrapper textarea:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.eb-password-toggle {
    position: absolute;
    right: 16px;
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
    user-select: none;
}

/* Errors */
.eb-field-error {
    color: #ef4444;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.eb-input-wrapper.has-error input,
.eb-input-wrapper.has-error select,
.eb-input-wrapper.has-error textarea,
.eb-file-upload.has-error {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
}
.eb-terms-wrapper.has-error {
    color: #ef4444;
}

.eb-input-wrapper.has-error input:focus,
.eb-input-wrapper.has-error select:focus,
.eb-input-wrapper.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

/* Step wrapper */
.eb-step {
    display: none;
}

.eb-step.active {
    display: block;
    animation: ebFadeIn 0.4s ease;
}

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

/* File Upload Styles */
.eb-file-upload {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.eb-file-upload:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
}

.eb-file-icon {
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.eb-file-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    display: block;
}

.eb-file-hint {
    font-size: 12px;
    color: #94a3b8;
}

.eb-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.eb-file-selected-name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

/* Checkbox & Terms */
.eb-terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.eb-terms-wrapper input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.eb-terms-wrapper label {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}

.eb-privacy-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.eb-privacy-link:hover {
    text-decoration: underline;
}

/* Navigation Buttons */
.eb-step-nav {
    display: flex;
    gap: 16px;
    margin-top: 45px;
}

.eb-btn {
    width: 100%;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eb-btn-primary {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.eb-btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.eb-btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.eb-btn-secondary:hover {
    background: #cbd5e1;
}

.eb-btn-full {
    width: 100%;
}

.eb-footer-login {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #64748b;
}

.eb-footer-login a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
}

.eb-footer-login a:hover {
    text-decoration: underline;
}

/* OTP Overlay Dialog */
.eb-otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eb-otp-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: ebFadeIn 0.3s ease;
}

.eb-otp-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.eb-otp-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.eb-otp-subtitle {
    font-size: 14px;
    color: #475569;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.eb-otp-inputs-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.eb-otp-box-input {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.3s ease;
}

.eb-otp-box-input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.eb-otp-message {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

.eb-otp-message.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.eb-otp-message.success {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #d1fae5;
}

.eb-otp-resend {
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
}

.eb-otp-resend-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}

.eb-otp-resend-btn:hover {
    text-decoration: underline;
}

.eb-otp-back-link {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    font-size: 13px;
}

.eb-otp-back-link:hover {
    color: #0f172a;
}

/* Dashboard & Jobs style */
.eb-dashboard-container {
    max-width: 1000px;
    margin: 120px auto 40px auto;
    min-height: 480px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eb-dashboard-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.eb-dashboard-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.eb-dashboard-tab.active {
    color: #3b82f6;
    background: #eff6ff;
}

.eb-dashboard-content-panel {
    display: none;
}

.eb-dashboard-content-panel.active {
    display: block;
}

/* Table view */
.eb-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.eb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.eb-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.eb-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
}

.eb-table tr:last-child td {
    border-bottom: none;
}

.eb-status-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.eb-status-tag.publish {
    background: #d1fae5;
    color: #065f46;
}

.eb-status-tag.pending {
    background: #fef3c7;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .eb-container {
        margin: 120px auto 20px;
        padding: 30px 20px;
    }
    .eb-form-grid,
    .eb-step[data-step="3"] .eb-form-grid {
        grid-template-columns: 1fr;
    }
    .eb-form-group.full-width {
        grid-column: span 1;
    }
    .eb-dashboard-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 8px;
    }
    .eb-dashboard-tab {
        text-align: left;
        width: 100%;
    }
}

/* -------------------------------------------------------------
 * Verification Page Styles
 * ------------------------------------------------------------- */
.eb-verification-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.eb-verification-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 650px;
    width: 100%;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.eb-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.eb-icon-circle {
    position: relative;
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.eb-checkmark-icon {
    width: 30px;
    height: 30px;
    color: white;
}

.eb-status-badge {
    background: #d1fae5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.eb-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.eb-card-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Timeline */
.eb-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}

.eb-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    text-align: center;
}

.eb-timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 15px; /* Center with marker (32px / 2 = 16px - 1px border) */
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.eb-timeline-item:last-of-type::before {
    display: none;
}

.eb-timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    z-index: 2;
    position: relative;
}

.eb-timeline-marker svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.eb-timeline-item.completed .eb-timeline-marker {
    background: #10b981;
    border-color: #10b981;
}

.eb-timeline-item.completed .eb-timeline-marker svg {
    color: #ffffff;
}

.eb-timeline-item.completed::before {
    background: #10b981;
}

.eb-timeline-item.active .eb-timeline-marker {
    border-color: #3b82f6;
    background: #eff6ff;
}

.eb-timeline-item.active .eb-timeline-marker .eb-dot {
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
}

.eb-timeline-content {
    padding: 0 10px;
}

.eb-timeline-title {
    display: block;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    margin-bottom: 4px;
}

.eb-timeline-desc {
    display: block;
    color: #64748b;
    font-size: 12px;
    max-width: 140px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Mobile Responsive for Verification Page */
@media (max-width: 768px) {
    .eb-verification-container {
        padding: 15px;
    }
    .eb-verification-card {
        padding: 30px 20px;
    }
    .eb-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10px;
    }
    .eb-timeline-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        width: 100%;
        margin-bottom: 24px;
    }
    .eb-timeline-item::before {
        left: 15px;
        top: 32px;
        width: 2px;
        height: calc(100% - 8px);
    }
    .eb-timeline-marker {
        margin-bottom: 0;
        margin-right: 16px;
        flex-shrink: 0;
    }
    .eb-timeline-content {
        padding: 0;
        padding-top: 4px;
    }
    .eb-timeline-desc {
        max-width: 100%;
        margin: 0;
    }
}
