:root {
    --im-sidebar-width: 260px;
    --im-sidebar-collapsed: 70px;
    --im-primary: #022868;
    --im-sidebar-bg: #1e293b;
    --im-bg: #f8fafc;
    --im-transition: 0.3s ease;
    --im-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --im-border: #e2e8f0;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

#im-dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--im-bg);
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.im-sidebar {
    width: var(--im-sidebar-width);
    background: var(--im-sidebar-bg);
    color: white;
    transition:
        width var(--im-transition),
        transform var(--im-transition);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.im-logout {
    width: 100%;
}

.im-logout a {
    display: flex;
    width: 92%;
    left: 4%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    position: relative;
    gap: 15px;
}

.im-sidebar.im-collapsed {
    width: var(--im-sidebar-collapsed);
}

.im-sidebar-header {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.im-nav {
    padding: 10px;
    list-style: none;
    margin: 0;
}

.im-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    white-space: nowrap;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.im-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.im-nav-text {
    margin-left: 15px;
    transition: opacity 0.2s;
}

/* Hide text when collapsed */
.im-sidebar.im-collapsed .im-nav-text,
.im-sidebar.im-collapsed .im-sidebar-header span,
.im-sidebar.im-collapsed .im-arrow {
    opacity: 0;
    pointer-events: none;
}

/* --- DROPDOWN --- */
.im-dropdown-container {
    max-height: 0;
    overflow: hidden;
    background: #0f172a;
    transition: max-height 0.3s ease;
    border-radius: 4px;
}

.im-dropdown-container.im-show {
    max-height: 300px;
}

.im-dropdown-item {
    display: block;
    padding: 10px 10px 10px 50px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
}

/* --- MAIN CONTENT & TOPBAR --- */
.im-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.im-topbar {
    background: white;
    height: 65px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.im-toggle-btn {
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    margin-right: 20px;
    color: #64748b;
}

/* --- PROFILE & NOTIFICATIONS --- */
.im-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.im-notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #64748b;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.im-notification-btn:hover {
    background: #f1f5f9;
}

.im-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

.im-user-profile:hover {
    background: #f1f5f9;
}

.im-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.im-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--im-primary);
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.im-content {
    padding: 25px;
}

.im-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--im-shadow);
}

/* --- TOAST NOTIFICATIONS --- */
#im-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.im-toast {
    min-width: 280px;
    background: #ffffff;
    color: #1e293b;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--im-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: imSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes imSlideIn {
    from {
        transform: translateX(110%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.im-toast.im-fade-out {
    animation: imFadeOut 0.3s ease forwards;
}

@keyframes imFadeOut {
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 768px) {
    .im-sidebar {
        position: fixed;
        height: 100vh;
        left: 0;
        transform: translateX(-100%);
        width: var(--im-sidebar-width) !important;
    }

    .im-sidebar.im-mobile-open {
        transform: translateX(0);
    }

    .im-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .im-overlay.im-show {
        display: block;
    }

    .im-user-name {
        display: none;
        /* Hide name on mobile to save space */
    }
}


/* --- PRICING TABLE STYLES --- */
.im-pricing-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    width: 100%;
    height: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.im-pricing-card {
    background: white;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--im-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
}

.im-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Featured (Premium) Card Styling */
.im-pricing-card.im-featured {
    border: 2px solid var(--im-primary);
    transform: scale(1.05);
    z-index: 2;
}

.im-pricing-card.im-featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.im-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--im-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.im-price-header h4 {
    margin: 0;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.im-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin: 15px 0;
}

.im-price-amount span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 400;
}

.im-price-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}

.im-price-features li {
    padding: 10px 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.im-price-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

.im-price-features li.im-disabled {
    color: #cbd5e1;
    text-decoration: line-through;
}

.im-price-features li.im-disabled::before {
    content: "✕";
    color: #f43f5e;
}

.im-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.im-btn-pricing {
    background: var(--im-sidebar-bg);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
}

.im-btn-pricing:hover {
    opacity: 0.9;
}

.im-featured .im-btn-pricing {
    background: var(--im-primary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .im-pricing-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .im-pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .im-pricing-card.im-featured {
        transform: scale(1);
        /* Remove scale on mobile for better fit */
    }

    .im-pricing-card.im-featured:hover {
        transform: translateY(-10px);
    }
}

/* --- JOB LISTING LAYOUT --- */
.im-job-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: start;
}

.im-job-container.no-sidebar {
    grid-template-columns: 1fr;
}

/* --- FILTER SIDEBAR --- */
.im-filter-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--im-shadow);
    position: sticky;
    top: 20px;
}

.im-filter-group {
    margin-bottom: 20px;
}

.im-toggle-on.im-filter-group {
    margin-bottom: 10px;
}

.im-filter-group h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1e293b;
    text-transform: uppercase;
    width: 100%;
}

.im-filter-group details summary {
    background: #eeeeee;
    padding: 15px 10px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
}

.im-filter-group details h4 {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.im-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
}

.im-details summary::-webkit-details-marker {
    display: none;
}

.im-details[open] .im-toggle-icon {
    transform: rotate(180deg);
}

.im-filter-list {
    animation: imFadeIn 0.3s ease-out;
}

@keyframes imFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- JOB LIST HEADER --- */
.im-job-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.im-view-toggles {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 8px;
}

.im-view-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
    background: #022868;
}

.im-view-btn.im-active {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- JOB GRID & LIST LOGIC --- */
.im-job-grid {
    display: grid;
    gap: 20px;
    transition: 0.3s;
}

/* Grid View (Default) */
.im-job-grid.im-view-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* List View */
.im-job-grid.im-view-list {
    grid-template-columns: 1fr;
}

/* --- JOB CARD --- */
.im-job-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--im-shadow);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.im-feat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
}

.im-view-list .im-job-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.im-job-card:hover {
    border-color: var(--im-primary);
}

.im-job-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.im-job-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.im-view-list .im-job-icon {
    margin-bottom: 0;
}

.im-job-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1e293b;
}

.im-job-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.im-view-list .im-job-meta {
    margin-bottom: 0;
    margin-top: 5px;
}

.im-job-tags {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.im-tag {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
}

/* Responsive */
@media (max-width: 992px) {
    .im-job-container {
        grid-template-columns: 1fr;
    }

    .im-filter-sidebar {
        display: none;
    }
}

/* --- JOB SEARCH FORM --- */
.im-hero-banner {
    position: relative;
    padding: 120px 20px;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
    margin-bottom: 50px;
}

/* OVERLAY */
.im-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.55));
    backdrop-filter: blur(6px);
}

/* INNER CONTENT */
.im-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: auto;
    text-align: center;
    color: white;
}

/* TITLE */
.im-hero-title {
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

/* SUBTITLE */
.im-hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* SEARCH FORM */
.im-hero-search {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* INPUT GROUP */
.im-input-group {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.im-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.8;
}

.im-input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.85);
    transition: background 0.2s, box-shadow 0.2s;
}

.im-input-group input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.4);
}

/* SUBMIT BUTTON */
.im-btn-hero-search {
    background: var(--im-primary);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s ease;
    height: 52px;
    align-self: center;
}

.im-btn-hero-search:hover {
    background: var(--im-primary-dark);
    transform: translateY(-2px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .im-hero-title {
        font-size: 34px;
    }

    .im-hero-subtitle {
        font-size: 16px;
    }

    .im-btn-hero-search {
        width: 100%;
        padding: 15px;
        height: auto;
    }
}


/* --- FEATURED LOCATIONS --- */
.im-section-title {
    margin: 40px 0 20px;
    font-size: 22px;
    color: #1e293b;
}

.im-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.im-location-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.im-location-card:hover {
    transform: scale(1.03);
}

.im-location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.im-location-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.im-location-overlay h4 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

.im-location-overlay span {
    font-size: 13px;
    opacity: 0.8;
}

/* --- TOP TYPES (Categories) --- */
.im-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.im-type-card {
    background: white;
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.im-type-card:hover {
    background: var(--im-primary);
    color: white;
    border-color: var(--im-primary);
}

.im-type-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.im-type-icon svg {
    height: 32px;
}

.im-type-card:hover svg {
    fill: #ffffff;
}

@media (max-width: 768px) {
    .im-search-form {
        flex-direction: column;
    }

    .im-btn-search {
        padding: 15px;
    }
}

/* --- STATUS BADGES --- */
.im-badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.im-status-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* Yellow */
.im-status-interview {
    background: #dcfce7;
    color: #166534;
}

/* Green */
.im-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Red */
.im-status-shortlist {
    background: #e0e7ff;
    color: #3730a3;
}

/* Blue */

/* --- DATA TABLES --- */
.im-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--im-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.im-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.im-data-table th {
    background: #f8fafc;
    padding: 15px 20px;
    font-size: 13px;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.im-data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.im-data-table a {
    text-decoration: none;
}

.im-applicant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.im-applicant-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.im-action-btn-wrapper {
    display: inline-flex;
    gap: 5px;
}

.im-action-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
    position: relative;
    display: inline-flex;
    height: 30px;
    width: 30px;
    justify-content: center;
    align-items: center;
}

.im-action-btn:hover {
    background: var(--im-primary);
    color: white;
}

.applicants-badge {
    top: -5px;
    right: -5px;
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    line-height: 10px;
    border-radius: 100%;
    padding: 0;
    z-index: 2;
}

/* Responsive Table */
@media (max-width: 768px) {
    .im-data-table thead {
        display: none;
    }

    .im-data-table td {
        display: block;
        text-align: right;
        padding: 10px 20px;
        position: relative;
    }

    .im-data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        font-weight: 600;
        color: #64748b;
    }

    .im-applicant-info {
        justify-content: flex-end;
    }
}

/* --- JOB DETAIL LAYOUT --- */
.im-job-detail-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 15px;
    background: #eeeeee;
    width: 100%;
    margin-bottom: 30px;
}

.im-detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto 30px;
}

/* --- MAIN CONTENT --- */
.im-description-widget {
    margin-bottom: 30px;
}

.im-mb-30 {
    margin-bottom: 30px;
}

.im-mt-30 {
    margin-top: 30px;
}

.im-detail-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.im-company-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 12px;
}

.im-brand-logo {
    width: 64px;
    height: 64px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 1px solid #e2e8f0;
}

.im-detail-title {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.im-job-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.im-pill {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.im-detail-body h4 {
    margin: 30px 0 15px;
    color: #1e293b;
}

.im-detail-body p,
.im-detail-body li {
    color: #475569;
    line-height: 1.7;
}

/* --- SIDEBAR WIDGETS --- */
.im-detail-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.im-widget {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--im-shadow);
}

.im-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.im-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}

.im-summary-item:last-child {
    border: none;
}

.im-summary-label {
    color: #94a3b8;
}

.im-summary-value {
    color: #1e293b;
    font-weight: 600;
}

.im-btn-apply {
    display: block;
    width: 100%;
    background: var(--im-primary);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.im-btn-apply:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.im-btn-apply {
    display: block;
    width: 100%;
    background: var(--im-primary);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.im-btn-apply:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 992px) {
    .im-detail-container {
        grid-template-columns: 1fr;
    }

    .im-detail-sidebar {
        position: static;
    }
}

/* --- JOB POSTING FORM --- */
.im-form-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--im-shadow);
    max-width: 900px;
    margin: 0 auto;
}

.im-form-section {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.im-form-section:last-child {
    border: none;
}

.im-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--im-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.im-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.im-field {
    margin-bottom: 15px;
}

.im-field.im-full {
    grid-column: span 2;
}

.im-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.im-input,
.im-select,
.im-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.im-input:focus,
.im-select:focus,
.im-textarea:focus {
    border-color: var(--im-primary);
}

.im-textarea {
    min-height: 120px;
    resize: vertical;
}

/* --- FEEDBACK MESSAGES --- */
.im-feedback {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--im-shadow);
    max-width: 500px;
    margin: 40px auto;
    display: none;
    /* Hidden by default */
}

.im-feedback.im-active {
    display: block;
    animation: imSlideIn 0.4s ease;
}

.im-feedback-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

.im-feedback-success .im-feedback-icon {
    color: #10b981;
}

.im-feedback-error .im-feedback-icon {
    color: #ef4444;
}

.im-feedback h2 {
    margin: 0 0 10px 0;
    color: #1e293b;
}

.im-feedback p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 640px) {
    .im-form-grid {
        grid-template-columns: 1fr;
    }

    .im-field.im-full {
        grid-column: span 1;
    }
}

/* --- MODAL SYSTEM --- */
.im-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    padding: 20px;
    overflow-y: scroll;
}

.im-modal-overlay.im-active {
    display: flex;
}

.im-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: hidden;
    animation: imModalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.im-modal.im-modal-small {
    max-width: 300px;
}

.im-modal.im-modal-medium {
    max-width: 650px;
}

.im-modal.im-modal-large {
    max-width: 900px;
}

@keyframes imModalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.im-modal-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.im-modal-body {
    padding: 25px;
}

.im-modal-footer {
    padding: 15px 25px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- IN-PAGE ALERTS --- */
.im-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
}

.im-alert-icon {
    font-size: 20px;
}

.im-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

.im-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.im-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.im-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* acf job form fileds style */
/* Container Styling */
.modern-job-form-wrapper {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Typography & Labels */
.acf-label label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    margin-bottom: 8px !important;
    display: block;
}

/* Inputs */
.acf-form-fields input[type="text"],
.acf-form-fields input[type="email"],
.acf-form-fields input[type="number"],
.acf-form-fields input[type="url"],
.acf-form-fields textarea,
.acf-form-fields select {
    width: 100%;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease;
}

.acf-form-fields input:focus {
    border-color: #4299e1 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15) !important;
    outline: none;
}

/* Grid Layout for Desktop */
@media screen and (min-width: 768px) {
    .acf-field[data-width="50"] {
        width: 50% !important;
        float: left;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .acf-field[data-width="33"] {
        width: 33.33% !important;
        float: left;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .acf-fields:after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Button Styling */
.acf-form-submit .acf-button {
    background: #3182ce !important;
    color: #fff !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
    text-shadow: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.acf-form-submit .acf-button:hover {
    background: #2b6cb0 !important;
}

/* Hide ACF default "Required" asterisk styling if you want to use custom */
span.acf-required {
    color: #e53e3e;
}

/* --- LOGIN PAGE STYLES --- */
.im-login-wrapper {
    display: flex;
    min-height: 100vh;
    background: white;
}

/* Left Side: Visual/Branding */
.im-login-aside {
    flex: 1;
    background: var(--im-sidebar-bg);
    background-image: linear-gradient(rgba(30, 41, 59, 0.8), rgba(79, 70, 229, 0.5)),
        url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
}

.im-login-aside h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.im-login-aside p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 450px;
    opacity: 0.9;
}

/* Right Side: Form */
.im-login-main {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.im-login-card {
    width: 100%;
    max-width: 380px;
}

.im-login-header {
    margin-bottom: 35px;
}

.im-login-header h2 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.im-login-header span {
    color: #64748b;
    font-size: 14px;
}

/* Social Login */
.im-social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.im-btn-social {
    flex: 1;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: background 0.2s;
}

.im-btn-social:hover {
    background: #f8fafc;
}

/* Dividers */
.im-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 30px;
}

.im-divider::before,
.im-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.im-divider span {
    padding: 0 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .im-login-aside {
        display: none;
    }

    .im-login-main {
        width: 100%;
    }
}

.change-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.change-form .change-form-fileds {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}


/* Traning */
.im-search-banner {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.im-input-group {
    flex: 1;
    position: relative;
}

.im-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.im-input-group input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--im-border);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.3s;
}

.im-input-group input:focus {
    border-color: var(--im-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Calendar Grid */
#calendar-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.fc-header-toolbar {
    margin-bottom: 20px !important;
}

.fc-button-primary {
    background-color: var(--im-primary) !important;
    border-color: var(--im-primary) !important;
    font-weight: 600 !important;
}

.fc-event {
    cursor: pointer;
    transition: 0.2s;
    border: none !important;
    padding: 2px 5px !important;
}

.fc-event:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Layer 3 & 4: Professional Modal */
.im-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.im-modal-overlay.active {
    display: flex;
}

.im-modal {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.im-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.im-modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.im-modal-body.im-dynamic-model-body {
    grid-template-columns: 1fr;
}

/* Instructor Info (Layer 4) */
.im-instructor-card {
    border: 1px solid #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 25px;
    background: #fcfcfc;
}

.im-instructor-card img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Side Metadata Panel */
.im-meta-panel {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.im-meta-item {
    margin-bottom: 18px;
}

.im-meta-item label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.im-meta-item strong {
    font-size: 14px;
    color: #334155;
    margin-top: 4px;
    display: block;
}

.im-btn-approve {
    width: 100%;
    padding: 14px;
    background: var(--im-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.im-btn-approve:hover {
    background: #4338ca;
}

.im-content-box {
    margin-bottom: 20px;
}

.im-content-box p:last-child {
    margin-bottom: 0;
}

/* Instructor Grid */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ins-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

.ins-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.ins-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #f8fafc;
    display: inline-block;
}

.ins-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: #1e293b;
}

.ins-card p {
    font-size: 12px;
    color: var(--im-primary);
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ins-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 15px;
    align-items: center;
}

.stat-box {
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.stat-box:hover {
    background: #f1f5f9;
}

.stat-box span {
    display: block;
    font-weight: bold;
    color: var(--im-primary);
    font-size: 16px;
}

.instructor-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.btn-detail,
.btn-detail:hover,
.btn-detail:active,
.btn-detail:visited,
.btn-detail:focus {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-detail:hover {
    background: #e2e8f0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.modal-header-bg {
    background: var(--im-sidebar-bg);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none !important;
    box-shadow: none !important;
}

.modal-body {
    padding: 30px;
}

.program-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.program-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.im-view-details {
    cursor: pointer;
}

/* Generic ACF input styling */
.acf-form-fields input[type="text"],
.acf-form-fields input[type="number"],
.acf-form-fields input[type="url"],
.acf-form-fields textarea,
.acf-form-fields select {
    width: 100%;
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease;
}

/* Style select2 container to match */
.acf-form-fields .select2-container .select2-selection--single,
.acf-form-fields .select2-container .select2-selection--multiple {
    height: auto !important;
    padding: 7px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    min-height: 45px !important;
    box-shadow: none !important;
}

/* Text inside Select2 */
.acf-form-fields .select2-selection__rendered {
    padding-left: 4px !important;
    line-height: 28px !important;
    font-size: 14px;
}

/* Remove default arrow styling */
.acf-form-fields .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* Input focus style */
.acf-form-fields .select2-container--default.select2-container--focus .select2-selection--single,
.acf-form-fields .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

/* Dropdown style */
.select2-container .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

/* Dropdown items */
.select2-results__option {
    padding: 10px 12px !important;
    font-size: 15px;
}

/* Hover + selected items */
.select2-results__option--highlighted {
    background: #e0e7ff !important;
    color: #000 !important;
}

.select2-results__option[aria-selected="true"] {
    background: #c7d2fe !important;
}

.im-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.im-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.im-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.im-slider:before {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.im-slider {
    background: #22c55e;
}

input:checked+.im-slider:before {
    transform: translateX(20px);
}

.btn-edit {
    background: #3b82f6;
    padding: 6px 10px;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

.btn-delete {
    background: #ef4444;
    padding: 6px 10px;
    color: white;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.stat-button-holder {
    display: flex;
    width: 100%;
    gap: 30px;
}

.stat-button-holder a {
    min-width: 100px;
    display: inline-block;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.im-dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.im-stat-card {
    position: relative;
    padding: 25px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.im-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.im-card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 80px;
    color: var(--im-primary);
    opacity: 0.1;
}

.im-stat-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--im-primary);
    margin-bottom: 6px;
}

.im-stat-label {
    font-size: 15px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.im-stat-subtext {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}

.im-stat-buttons {
    margin-top: 14px;
}

.im-stat-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #1e293b;
    font-weight: 600;
    margin-right: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.im-stat-btn i {
    margin-right: 6px;
}

.im-stat-btn:hover {
    background: var(--im-sidebar-bg);
    color: #fff;
}

.im-basic-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.professional-card {
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 60px;
    color: rgba(30, 41, 59, 0.1);
    position: absolute;
    top: 10px;
    right: 10px;
}

.stat-content {
    z-index: 2;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-count {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 5px 0;
}

.stat-subtext {
    color: #94a3b8;
    font-size: 12px;
}

.wp-block-kadence-navigation .navigation,
.wp-block-kadence-navigation .menu-container {
    display: block;
}