/* =============================================
   Careerfy Employment Agent — cea-style.css
   ============================================= */

/* ---------- EA Badge on Job Listings ---------- */
.cea-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #1a73e8;
    border: 1px solid #b3d7f7;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ---------- Dashboard Layout ---------- */
.cea-dashboard-wrap {
    display: flex;
    min-height: 80vh;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

/* ---------- Sidebar ---------- */
.cea-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.cea-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
}

.cea-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cea-profile-card h3 {
    margin: 12px 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.cea-role-badge {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    letter-spacing: 0.5px;
}

.cea-location {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.cea-nav {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
}

.cea-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
}

.cea-nav-item:hover,
.cea-nav-item.active {
    background: #f0f7ff;
    color: #1a73e8;
    border-left-color: #1a73e8;
    text-decoration: none;
}

.cea-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.cea-logout { color: #e53e3e !important; }
.cea-logout:hover { background: #fff5f5 !important; border-left-color: #e53e3e !important; }

/* ---------- Main ---------- */
.cea-main {
    flex: 1;
    min-width: 0;
}

.cea-section-header {
    margin-bottom: 24px;
}

.cea-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* ---------- Stats ---------- */
.cea-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.cea-stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #1a73e8;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-weight: 500;
}

/* ---------- Notice ---------- */
.cea-notice {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cea-notice-info {
    background: #e8f4fd;
    color: #1a5276;
    border: 1px solid #b3d7f7;
}

.cea-notice i { margin-top: 2px; }

/* ---------- Form Card ---------- */
.cea-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 28px;
}

.cea-form-group {
    margin-bottom: 20px;
}

.cea-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.cea-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cea-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde1e7;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafbfc;
    transition: border .2s;
    box-sizing: border-box;
}

.cea-input:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
}

.cea-textarea {
    resize: vertical;
    min-height: 120px;
}

.cea-form-actions {
    margin-top: 8px;
}

/* ---------- Buttons ---------- */
.cea-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.cea-btn-primary {
    background: #1a73e8;
    color: #fff;
}

.cea-btn-primary:hover { background: #1558b0; }
.cea-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.cea-btn-danger {
    background: #fff;
    color: #e53e3e;
    border: 1.5px solid #e53e3e;
    padding: 6px 14px;
    font-size: 12px;
}

.cea-btn-danger:hover { background: #fff5f5; }

/* ---------- Alert ---------- */
.cea-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.cea-alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.cea-alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---------- Jobs Table ---------- */
.cea-jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.cea-jobs-table th {
    background: #f4f6f9;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.cea-jobs-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #eef0f3;
}

.cea-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.cea-status-publish { background: #d4edda; color: #155724; }
.cea-status-draft   { background: #fff3cd; color: #856404; }
.cea-status-pending { background: #cce5ff; color: #004085; }

.cea-loading { color: #666; padding: 20px 0; }

/* ---------- Register tab ---------- */
.employment-agent-tab a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .cea-dashboard-wrap { flex-direction: column; }
    .cea-sidebar { width: 100%; }
    .cea-stats-grid { grid-template-columns: 1fr 1fr; }
    .cea-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cea-stats-grid { grid-template-columns: 1fr; }
}
