:root {
    --premium-navy: #0f172a;
    --premium-slate: #334155;
    --premium-emerald: #10b981;
    --premium-bg: #f8fafc;
    --premium-card-bg: rgba(255, 255, 255, 0.8);
    --premium-border: #e2e8f0;
    --premium-text: #1e293b;
}

/* Dashboard Container */
.wjportal-jobseeker-premium-dashboard {
    font-family: 'Inter', sans-serif;
    background-color: var(--premium-bg);
    padding: 2rem 0;
}

/* Premium Header Card */
.premium-dashboard-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.premium-dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(to right, #10b981, #3b82f6);
    z-index: 1;
}

.header-content-inner,
.header-actions {
    position: relative;
    z-index: 2;
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.header-content-inner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.header-tagline {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Stat Cards */
.premium-stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--premium-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.premium-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--premium-emerald);
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bg-primary-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-info-soft {
    background-color: rgba(14, 165, 233, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--premium-navy);
    line-height: 1;
}

.stat-label {
    color: var(--premium-slate);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-link {
    color: var(--premium-emerald);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
}

.stat-link:hover {
    color: #059669;
}

/* Sidebar Menu */
.premium-sidebar-menu {
    background: white;
    border-radius: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--premium-border);
}

.sidebar-menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--premium-slate);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.premium-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--premium-text);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.premium-menu-item:hover {
    background: #f1f5f9;
    color: var(--premium-emerald);
}

.premium-menu-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Content Sections */
.dashboard-section-card {
    background: white;
    border-radius: 1.25rem;
    border: 1px solid var(--premium-border);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--premium-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--premium-navy);
}

.section-card-body {
    padding: 1.5rem;
}

/* Custom Buttons */
.btn-premium-primary {
    background-color: var(--premium-emerald);
    border-color: var(--premium-emerald);
    color: white;
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-premium-primary:hover {
    background-color: #059669;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-premium-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Override existing plugin styles */
.wjportal-main-wrapper {
    background: transparent !important;
    padding: 0 !important;
}

.wjportal-page-header,
.wjportal-page-heading,
.wjportal-breadcrumbs,
.entry-header.ast-no-title,
.entry-header {
    display: none !important;
    /* Hide old blue title bar and breadcrumbs */
}

.wjportal-cp-top,
.wjportal-cp-guest-banner-wrap {
    display: none !important;
    /* Managed by our custom header */
}

/* Modern Profile Form Layout */
.profile-edit-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .profile-edit-layout {
        grid-template-columns: 1fr;
    }
}

.form-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-sidebar-content {
    position: sticky;
    top: 2rem;
}

/* Input Groups */
.premium-input-group {
    margin-bottom: 0;
}

.premium-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--premium-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.premium-input-wrapper {
    position: relative;
}

.premium-input-wrapper i {
    position: absolute;
    left: 1.25rem;
    top: 1.75rem;
    /* Center of the 3.5rem input */
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

.premium-input-wrapper .wjportal-form-input-field {
    padding-left: 3rem !important;
    background: #fff;
    border: 1px solid var(--premium-border);
    border-radius: 1rem;
    height: 3.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-input-wrapper .wjportal-form-input-field:focus {
    border-color: var(--premium-emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

/* Validation Styling */
.premium-input-wrapper .wjportal-form-input-field.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.premium-input-group .form-error {
    color: #e63946 !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

/* Hide any library-injected icons in the error */
.form-error i {
    display: none !important;
}

@keyframes slideInUp {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Photo Upload Box */
.photo-upload-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--premium-border);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.photo-upload-preview {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 2rem;
    padding: 5px;
    background: linear-gradient(135deg, var(--premium-emerald), #3b82f6);
}

.photo-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.8rem;
    border: 4px solid white;
}

.photo-delete-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid white;
    transition: all 0.2s;
}

.photo-delete-badge:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.photo-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-upload-btn {
    background: #0f172a;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.custom-upload-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.photo-info-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* Footer Section */
.form-footer-bar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--premium-border);
    display: flex;
    justify-content: flex-end;
}

/* Quick Actions List */

.premium-action-list {
    padding: 0.5rem;
}

.premium-action-list .list-group-item {
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--premium-text);
    transition: all 0.2s;
    background: var(--premium-bg);
}

.premium-action-list .list-group-item:hover {
    background: #f1f5f9;
    color: var(--premium-emerald);
    transform: translateX(4px);
}

.premium-action-list .list-group-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}