/* =====================================================================
   41st IACDE - Modern admin polish (teal brand)
   Scoped under .iacde-scope so it only affects the redesigned pages.
   Linked in: Login.aspx, Home.aspx, ViewRegistration.aspx
   ===================================================================== */

.iacde-scope {
    --teal: #01757d;
    --teal-dark: #015258;
    --teal-2: #0a8f98;
    --navy: #084469;
    --gold: #dca924;
    --green: #2e9e5b;
    --amber: #e8920c;
    --ink: #1f2d3d;
    --muted: #6b7a8d;
    --line: #e6ebf1;
    --surface: #ffffff;
    --bg-soft: #f4f7fa;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(8, 68, 105, 0.28), 0 2px 6px rgba(8, 68, 105, 0.06);
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--ink);
}

/* ---------- Page container / card ---------- */
.iacde-scope .iacde-card,
.iacde-scope .box,
.iacde-scope .feature-block {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 24px;
}

.iacde-scope .iacde-card .box-body,
.iacde-scope .box .box-body {
    padding: 22px 26px 26px !important;
}

/* ---------- Gradient page header bar ---------- */
.iacde-scope .iacde-head {
    background: linear-gradient(120deg, var(--teal) 0%, var(--teal-2) 55%, var(--navy) 130%) !important;
    color: #fff !important;
    padding: 16px 24px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    margin: 0 0 22px 0;
}

.iacde-scope .iacde-head h1,
.iacde-scope .iacde-head h2,
.iacde-scope .iacde-head h3,
.iacde-scope .iacde-head h4 {
    font-family: 'Jost', 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: .4px;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1.2;
}

.iacde-scope .iacde-head .iacde-head-ico {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex: 0 0 auto;
}

/* ---------- KPI / stat cards (Home) ---------- */
.iacde-scope .info-box {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px 20px;
    margin-bottom: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 22px -14px rgba(8, 68, 105, .35);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.iacde-scope .info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -16px rgba(8, 68, 105, .5);
}

.iacde-scope .info-box::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--teal);
}

.iacde-scope .info-box-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    border-radius: 15px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 24px !important;
    color: #fff !important;
    background: linear-gradient(140deg, var(--teal), var(--navy)) !important;
    box-shadow: 0 8px 16px -6px rgba(1, 117, 125, .6);
    line-height: 1 !important;
}

.iacde-scope .info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto !important;
    flex: 1;
}

.iacde-scope .info-box-content > span:first-child,
.iacde-scope .info-box-text {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--muted) !important;
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 1.35;
}

.iacde-scope .info-box-number {
    font-family: 'Jost', sans-serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 2px;
}

/* KPI colour variants */
.iacde-scope .kpi--total::before { background: var(--teal); }
.iacde-scope .kpi--pending::before { background: var(--amber); }
.iacde-scope .kpi--approved::before { background: var(--green); }
.iacde-scope .kpi--pending .info-box-icon { background: linear-gradient(140deg, #f0a72a, #d97706) !important; box-shadow: 0 8px 16px -6px rgba(217,119,6,.55); }
.iacde-scope .kpi--approved .info-box-icon { background: linear-gradient(140deg, #34b56a, #1f7d45) !important; box-shadow: 0 8px 16px -6px rgba(31,125,69,.55); }

/* ---------- Registration Analytics (charts card + toggle) ---------- */
.iacde-scope .iacde-charts {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px -16px rgba(8, 68, 105, .4);
    margin: 6px 0 24px;
    overflow: hidden;
}

.iacde-scope .ca-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(120deg, var(--teal), var(--navy));
}

.iacde-scope .ca-title {
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .4px;
}

.iacde-scope .ca-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.iacde-scope .ca-btn {
    border: none;
    background: transparent;
    color: #eafafa;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.iacde-scope .ca-btn:hover { color: #fff; }

.iacde-scope .ca-btn.is-active {
    background: #fff;
    color: var(--teal);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.iacde-scope .ca-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 20px;
}

.iacde-scope .ca-chart {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 12px 14px;
    background: #fcfdfe;
}

.iacde-scope .ca-chart h5 {
    margin: 0 0 10px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.iacde-scope .ca-canvas {
    position: relative;
    height: 240px;
}

@media (max-width: 992px) {
    .iacde-scope .ca-body { grid-template-columns: 1fr; }
}

/* ---------- Section titles (underlined labels in Home) ---------- */
.iacde-scope u {
    text-decoration: none !important;
}

.iacde-scope .LabelStyle,
.iacde-scope u .LabelStyle {
    font-family: 'Jost', 'Open Sans', sans-serif;
    color: var(--navy) !important;
    position: relative;
}

.iacde-scope u .LabelStyle::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
    margin: 7px auto 0;
}

/* ---------- Modern tables (GridView .Admingridtable) ---------- */
.iacde-scope .Admingridtable {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px -12px rgba(8, 68, 105, .4);
    font-size: 13.5px;
}

.iacde-scope .Admingridtable th {
    background: var(--teal) !important;
    color: #fff !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 12px !important;
    text-align: center;
    border: none !important;
    white-space: nowrap;
}

.iacde-scope .Admingridtable td {
    padding: 11px 12px !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    color: var(--ink);
    vertical-align: middle;
    background: transparent;
}

.iacde-scope .Admingridtable tr:nth-child(even) td {
    background: #f7fafb;
}

.iacde-scope .Admingridtable tr:hover td {
    background: #e9f5f6;
}

.iacde-scope .Admingridtable tr:last-child td {
    border-bottom: none !important;
}

/* Keep GridView's own font-size overrides from shrinking things oddly */
.iacde-scope .Admingridtable td span {
    font-size: 13.5px !important;
}

/* ---------- Form controls ---------- */
.iacde-scope .form-control {
    border: 1px solid #d5dde5 !important;
    border-radius: var(--radius-sm) !important;
    padding: 9px 12px !important;
    height: auto !important;
    font-size: 14px !important;
    color: var(--ink) !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}

.iacde-scope .form-control:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(1, 117, 125, .15) !important;
    outline: none !important;
}

.iacde-scope label,
.iacde-scope .form-group > span,
.iacde-scope .RadioButtonWidth label {
    color: var(--ink);
}

/* radio lists spacing */
.iacde-scope .RadioButtonWidth label {
    font-weight: 400 !important;
    padding: 2px 0;
}

/* ---------- Compact search/filter panel (ViewRegistration) ---------- */
.iacde-search .row {
    margin-bottom: 0;
}

.iacde-search [class^="col-md-"] {
    margin-bottom: 10px;
}

.iacde-search label {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.2;
}

.iacde-search .form-control {
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* strip the many <br> spacers that inflate the form height.
   Restricted to filter columns so <br> inside the results grid cells
   (e.g. Payment Details) is NOT collapsed. */
.iacde-search .col-md-2 > br,
.iacde-search .col-md-3 > br {
    display: none;
}

/* tighten radio-button lists (rendered as tables). Scoped to RadioButtonWidth
   only, so the results GridView (.Admingridtable) keeps its cell padding. */
.iacde-search .RadioButtonWidth td {
    padding: 0 4px 0 0 !important;
    border: none !important;
}

.iacde-search .RadioButtonWidth label {
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.iacde-search hr {
    margin: 10px 0 !important;
}

/* ---------- Buttons (custom-btn / btn-14) ---------- */
.iacde-scope .custom-btn.btn-14,
.iacde-scope .custom-btn {
    display: inline-block;
    background: linear-gradient(120deg, var(--teal), var(--navy)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 24px !important;
    font-family: 'Jost', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(1, 117, 125, .7) !important;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    margin: 6px 6px 6px 0;
    line-height: 1.3 !important;
    height: auto !important;
    width: auto !important;
}

.iacde-scope .custom-btn.btn-14::before,
.iacde-scope .custom-btn::before {
    display: none !important;
}

.iacde-scope .custom-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 22px -8px rgba(1, 117, 125, .8) !important;
    color: #fff !important;
}

.iacde-scope .custom-btn:active {
    transform: translateY(0);
}

/* Cancel / secondary buttons: any custom-btn whose sibling context is secondary */
.iacde-scope .btn-secondary,
.iacde-scope .custom-btn.is-ghost {
    background: #fff !important;
    color: var(--teal) !important;
    border: 1.5px solid var(--teal) !important;
    box-shadow: none !important;
}

/* ---------- Totals strip (ViewRegistration) ---------- */
.iacde-scope .iacde-totals {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 14px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    align-items: center;
    justify-content: center;
}

.iacde-scope .iacde-totals b,
.iacde-scope .iacde-totals .LabelStyle { color: var(--ink); }

/* count pill */
.iacde-scope .iacde-count {
    display: inline-block;
    background: var(--teal);
    color: #fff !important;
    border-radius: 999px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 13px;
}

/* horizontal rule */
.iacde-scope hr {
    border: none !important;
    border-top: 1px solid var(--line) !important;
    background: transparent !important;
    height: 0 !important;
    margin: 18px 0 !important;
}

/* action icons in grid a bit tidier */
.iacde-scope .Admingridtable .fa {
    transition: transform .12s ease;
}
.iacde-scope .Admingridtable a:hover .fa {
    transform: scale(1.18);
}

/* ---------- Login page ---------- */
.iacde-scope.iacde-login {
    padding: 30px 0;
}

.iacde-scope .iacde-login-card {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -22px rgba(8, 68, 105, .5);
    border: 1px solid var(--line);
    overflow: hidden;
}

.iacde-scope .iacde-login-head {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 50%, var(--navy) 120%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 14px 22px;
}

.iacde-scope .iacde-login-head .lock {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.iacde-scope .iacde-login-head h3 {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
    margin: 0;
    color: #fff !important;
    font-size: 20px;
    line-height: 1.15;
}

.iacde-scope .iacde-login-head p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: .85;
}

.iacde-scope .iacde-login-body {
    padding: 28px 30px 30px;
}

.iacde-scope .iacde-captcha {
    background: var(--bg-soft);
    border: 1px dashed #c7d3dd;
    border-radius: 12px;
    padding: 14px 16px;
    text-align: center;
    margin-top: 4px;
}

.iacde-scope .validators {
    min-height: 6px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .iacde-scope .info-box { min-height: auto; }
    .iacde-scope .iacde-head h1,
    .iacde-scope .iacde-head h2,
    .iacde-scope .iacde-head h3,
    .iacde-scope .iacde-head h4 { font-size: 19px !important; }
}
