/* ------------------------------------------------------------------
 * CareerBN design polish — loaded LAST, cosmetic only (no sizing/layout
 * changes) so it can't break the existing theme layouts. Part of Phase 10.
 * ------------------------------------------------------------------ */

:root { --cbn-orange:#ff8a00; --cbn-orange-d:#ff6a00; }

/* Consistent, friendlier focus state on all form controls */
input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.selectpicker:focus,
.bootstrap-select .btn:focus {
    border-color: var(--cbn-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.12) !important;
    outline: none !important;
}

/* Primary CTA buttons — subtle gradient + smoother hover (color/shadow only) */
.button.ripple-effect,
a.button,
button.button,
.utf-intro-search-button .button {
    background-image: linear-gradient(135deg, var(--cbn-orange), var(--cbn-orange-d));
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button.ripple-effect:hover,
a.button:hover,
button.button:hover {
    filter: brightness(1.03);
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.28);
    transform: translateY(-1px);
}

/* Cards / boxes — soften the shadow for a cleaner, less "boxy" feel */
.dashboard-box,
.utf-freelancer-overview,
.utf-category-small-box-item,
.utf-job-listing {
    box-shadow: 0 2px 12px rgba(40, 50, 80, 0.06);
}

/* Tables: subtle row hover for readability */
table.basic-table tbody tr:hover,
.dataTable tbody tr:hover {
    background-color: #fff8ef;
}

/* Links: stick to the brand accent on hover */
a:hover { color: var(--cbn-orange); }

/* ------------------------------------------------------------------
 * Backend dashboard — compact control sizing (Phase 10 control-sizing pass)
 * Scope everything to .utf-dashboard-content-inner-aera so these rules
 * never touch the front-end hero or the public pages.
 * ------------------------------------------------------------------ */

/* Compact text inputs, selects, textareas in the dashboard */
.utf-dashboard-content-inner-aera .form-control,
.utf-dashboard-content-inner-aera .with-border,
.utf-dashboard-content-inner-aera input[type="text"],
.utf-dashboard-content-inner-aera input[type="email"],
.utf-dashboard-content-inner-aera input[type="number"],
.utf-dashboard-content-inner-aera input[type="password"],
.utf-dashboard-content-inner-aera input[type="date"],
.utf-dashboard-content-inner-aera select,
.utf-dashboard-content-inner-aera .bootstrap-select > .dropdown-toggle {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Textareas keep auto height — just normalise font/padding */
.utf-dashboard-content-inner-aera textarea.form-control,
.utf-dashboard-content-inner-aera textarea.with-border {
    height: auto !important;
    min-height: 80px !important;
    font-size: 13px !important;
}

/* Compact labels */
.utf-dashboard-content-inner-aera label,
.utf-dashboard-content-inner-aera .utf-submit-field label {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    font-weight: 600;
}

/* Tighter form-group spacing */
.utf-dashboard-content-inner-aera .form-group,
.utf-dashboard-content-inner-aera .utf-submit-field {
    margin-bottom: 14px !important;
}

/* Compact table cells in the dashboard */
.utf-dashboard-content-inner-aera table.basic-table th,
.utf-dashboard-content-inner-aera table.basic-table td,
.utf-dashboard-content-inner-aera .dataTable th,
.utf-dashboard-content-inner-aera .dataTable td {
    padding: 8px 12px !important;
    font-size: 13px !important;
    vertical-align: middle !important;
}

/* Badge / pill size normalisation — prevent oversized spatie/custom badges */
.utf-dashboard-content-inner-aera .badge,
.utf-dashboard-content-inner-aera .label {
    font-size: 11px !important;
    padding: 3px 7px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* Empty-state helper — centred muted placeholder */
.cbn-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #aaa;
}
.cbn-empty-state i {
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .4;
}
.cbn-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Toast position — keep toasts in the top-right and above modals */
#toast-container {
    top: 70px !important;
    right: 20px !important;
    z-index: 9999 !important;
}
#toast-container > div {
    max-width: 320px;
}

/* ------------------------------------------------------------------
 * Responsive pass (Phase 10)
 * ------------------------------------------------------------------ */

/* Dashboard tables scroll horizontally on small screens */
.utf-dashboard-content-inner-aera .table-responsive-cbn {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* On mobile, stack the action buttons in the applicant row */
@media (max-width: 767px) {
    .utf-dashboard-content-inner-aera {
        padding: 12px !important;
    }

    /* Stack export buttons vertically on small screens */
    .cbn-export-actions {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
    }

    /* Make breadcrumbs wrap cleanly */
    #breadcrumbs ul { flex-wrap: wrap; }

    /* Dashboard stat cards — full width on mobile */
    .utf-fun-facts-container-item [class^="col-"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Candidate dashboard chart row — stack on mobile */
    .cbn-dash-charts .col-xl-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 16px;
    }

    /* Job listing footer items — wrap on mobile */
    .utf-job-listing-footer ul {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Menu sidebar — collapse long nav-tag numbers */
    .nav-tag { display: none; }
}

/* Utility: auto-wrap overflowing table in dashboard */
.utf-dashboard-content-inner-aera .basic-table,
.utf-dashboard-content-inner-aera .dataTable {
    min-width: 600px;
}
.utf-dashboard-content-inner-aera .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Applicant list: keep action buttons from wrapping awkwardly */
.cbn-applicant-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

/* ------------------------------------------------------------------
 * Empty-state: consistent across all uses of .cbn-empty-state
 * ------------------------------------------------------------------ */
.cbn-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #bbb;
    background: #fafbfd;
    border: 1px dashed #e8e8e8;
    border-radius: 10px;
    margin: 16px 0;
}
.cbn-empty-state i {
    display: block;
    font-size: 52px;
    margin-bottom: 14px;
    opacity: .3;
}
.cbn-empty-state p {
    font-size: 14px;
    margin: 0;
    color: #999;
    line-height: 1.6;
}
.cbn-empty-state .cbn-empty-cta {
    margin-top: 16px;
}
