/* ═══════════════════════════════════════════════════
   ISC – هيأة الأوراق المالية العراقية
   Custom Stylesheet | ASP.NET Core Migration
═══════════════════════════════════════════════════ */

:root {
    --isc-navy: #1e3a6e;
    --isc-teal: #22a79d;
    --isc-gold: #f0a500;
    --isc-light: #f4f6fb;
    --isc-border: #dde4f0;
}

.d-md-block {
    zoom: 125% !important;
}
/* ── Base ───────────────────────────────────────── */
* {
    font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
}

body {
    background: var(--isc-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Navbar ─────────────────────────────────────── */
.isc-navbar {
    background: linear-gradient(135deg, var(--isc-navy) 0%, #163060 100%);
    border-bottom: 3px solid var(--isc-teal);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    min-height: 65px;
}

.isc-role-badge {
    background: rgba(34,167,157,0.2);
    border: 1px solid var(--isc-teal);
    color: #a0e8e3;
}

/* ── Page Header ────────────────────────────────── */
.isc-page-header {
    background: linear-gradient(135deg, var(--isc-navy), #2a5298);
    color: #fff;
    padding: 18px 0;
    margin-bottom: 0;
    border-bottom: 3px solid var(--isc-teal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ── Main Content ───────────────────────────────── */
.isc-main {
    flex: 1;
    background: url('/images/Header2.jpg') center/cover no-repeat fixed;
    background-blend-mode: overlay;
    background-color: rgba(244, 246, 251, 0.75);
}

/* ── Cards ──────────────────────────────────────── */
.isc-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.isc-card-header {
    background: linear-gradient(135deg, var(--isc-navy), #2a5298);
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
}

/* ── Dashboard Cards ────────────────────────────── */
.isc-dash-item {
    border-radius: 12px !important;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent !important;
}

    .isc-dash-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(30,58,110,0.15) !important;
        border-color: var(--isc-teal) !important;
    }

.isc-dash-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────── */
.btn-isc {
    background: linear-gradient(135deg, var(--isc-navy), #2a5298);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .btn-isc:hover {
        background: linear-gradient(135deg, #2a5298, var(--isc-teal));
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(30,58,110,0.3);
    }

    .btn-isc:disabled {
        opacity: .65;
        transform: none;
    }

/* ── Table ──────────────────────────────────────── */
.isc-thead th {
    background: var(--isc-navy) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    border: none !important;
    padding: 12px !important;
    white-space: nowrap;
}

.table-hover tbody tr:hover {
    background: rgba(34,167,157,0.06) !important;
}

/* ── Footer ─────────────────────────────────────── */
.isc-footer {
    background: #fff;
    border-top: 2px solid var(--isc-border);
}

/* ══════════ LOGIN PAGE ══════════ */
.login-body {
    background: linear-gradient(135deg, var(--isc-navy) 0%, #163060 40%, #22a79d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: url('/images/Header.jpg') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
}

.login-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.login-card-header {
    background: linear-gradient(135deg, var(--isc-navy), #22a79d);
    color: #fff;
}

/* ══════════ FILE DROPZONE ══════════ */
.isc-dropzone {
    border: 2px dashed var(--isc-teal);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: rgba(34,167,157,0.03);
    transition: all 0.2s;
}

    .isc-dropzone:hover, .isc-dropzone.drag-over {
        background: rgba(34,167,157,0.08);
        border-color: var(--isc-navy);
    }

/* ── DataTables overrides ───────────────────────── */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 6px;
    border-color: var(--isc-border);
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
}

.page-item.active .page-link {
    background: var(--isc-navy);
    border-color: var(--isc-navy);
}

.page-link {
    color: var(--isc-navy);
}

/* ── Misc ───────────────────────────────────────── */
.fs-7 {
    font-size: 0.85rem;
}

.fs-8 {
    font-size: 0.75rem;
}

.table td, .table th {
    vertical-align: middle;
}

/* ══════════ TABLE FIXES ══════════ */
.table td, .table th {
    text-align: center !important;
    vertical-align: middle !important;
}

    .table td:first-child, .table th:first-child {
        width: 45px;
    }

/* ══════════ DATATABLES SEARCH BOX ══════════ */
.dt-search-bar {
    padding: 16px 0 8px;
}

    .dt-search-bar .input-group {
        max-width: 560px;
        margin: 0 auto;
    }

    .dt-search-bar input {
        height: 48px;
        font-size: 15px;
        border: 2px solid var(--isc-teal);
        border-radius: 10px 0 0 10px !important;
        padding-right: 18px;
    }

    .dt-search-bar .input-group-text {
        background: var(--isc-teal);
        color: #fff;
        border: none;
        border-radius: 0 10px 10px 0 !important;
        padding: 0 18px;
    }

.dataTables_wrapper .dataTables_filter {
    display: none;
}

.dataTables_wrapper .dataTables_info {
    font-size: 13px;
    color: #666;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 6px;
    height: 34px;
}

/* ══════════ PAGE TITLE CENTERED ══════════ */
.page-title-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 8px 0;
}

    .page-title-center .back-btn-left {
        position: absolute;
        left: 0;
    }

/* ══════════ NAVBAR BRAND ══════════ */
.isc-logo-nav {
    height: 100px;
    border-radius: 5px;
    width: 60px;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 0 14px rgba(34,167,157,0.45);
    object-fit: cover;
    transition: transform 0.2s;
}

    .isc-logo-nav:hover {
        transform: scale(1.06);
    }

.isc-brand-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
}

.isc-brand-subtitle {
    font-size: 10px;
    opacity: .65;
    letter-spacing: .5px;
    margin-bottom: 2px;
}

.isc-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1.2;
}

.isc-brand-en {
    font-size: 10px;
    opacity: .5;
    font-family: 'Segoe UI',sans-serif;
    margin-top: 1px;
}

/* ══════════ DATATABLES FIXES ══════════ */
.dataTables_length {
    padding: 8px 16px !important;
}

.dataTables_info {
    padding: 8px 16px !important;
    font-size: 13px;
}
/* Built-in filter always hidden (we use custom inputs) */
.dataTables_wrapper .dataTables_filter {
    display: none !important;
}

/* ══════════ HEADER SEARCH INPUT (dark bg) ══════════ */
.isc-header-search {
    width: 300px;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    height: 34px;
    font-size: 13px;
    padding: 0 12px;
}

    .isc-header-search::placeholder {
        color: rgba(255,255,255,0.55);
    }

    .isc-header-search:focus {
        background: rgba(255,255,255,0.18) !important;
        border-color: rgba(255,255,255,0.6) !important;
        outline: none;
        box-shadow: none !important;
        color: #fff !important;
    }
