/* ============================================================
   BYC UI KIT - full replacement for Materialize on public pages
   ============================================================ */

:root {
    --byc-navy: #0c1f38;
    --byc-blue: #0d5bd7;
    --byc-blue-dark: #0a4ab2;
    --byc-amber: #ff8a2a;
    --byc-amber-dark: #f07a15;
    --byc-green: #1f9d55;
    --byc-red: #d33c3c;
    --byc-ink: #10203a;
    --byc-slate: #5b6b84;
    --byc-line: #e6ecf4;
    --byc-bg: #f5f8fc;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #33445f;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--byc-blue); text-decoration: none; }
a:hover { color: var(--byc-amber-dark); }
h1, h2, h3, h4, h5, h6 {
    color: var(--byc-ink);
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.25;
    margin: 0 0 .6em 0;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em 0; }
ul, ol { margin: 0 0 1em 0; padding-left: 22px; }
hr { border: none; border-top: 1px solid var(--byc-line); margin: 20px 0; }
small { font-size: 85%; }

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    width: auto;
}

/* ---------- page title band ---------- */
.icbaslikark {
    background: linear-gradient(120deg, #0c1f38 0%, #14406e 100%);
    padding: 34px 0;
}
.icbaslikark .isbasklk, .icbaslikark h1 {
    color: #fff;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0;
}
.icerikler { padding: 10px 0 40px 0; }

/* ---------- panels / cards ---------- */
.byc-panel, .card, .card-panel {
    background: #fff;
    border: 1px solid var(--byc-line);
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(13, 35, 67, .06);
    margin: 12px 0 20px 0;
}
.card .card-content, .byc-panel-body { padding: 26px; }
.card .card-title, .byc-panel-title {
    display: block;
    font-weight: 800;
    font-size: 20px;
    color: var(--byc-ink);
    letter-spacing: -.3px;
    margin-bottom: 14px;
}
.card .card-action { border-top: 1px solid var(--byc-line); padding: 18px 26px; }
.card-panel { padding: 18px 22px; }

/* ---------- buttons ---------- */
.btn, .btn-large, .btn-small, .byc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--byc-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .2px;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .15s;
    height: auto;
    text-transform: none;
}
.btn-large { padding: 15px 30px; font-size: 15.5px; }
.btn-small { padding: 7px 12px; font-size: 13px; }
.btn:hover, .btn-large:hover, .btn-small:hover, .byc-btn:hover {
    background: var(--byc-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn.orange, .btn-large.orange, .byc-btn-amber { background: var(--byc-amber); }
.btn.orange:hover, .btn-large.orange:hover, .byc-btn-amber:hover { background: var(--byc-amber-dark); }
.btn.green, .btn-large.green, .btn.green.darken-1, .byc-btn-green { background: var(--byc-green); }
.btn.green:hover, .btn-large.green:hover, .byc-btn-green:hover { background: #187f44; }
.btn.red, .btn-small.red, .byc-btn-red { background: var(--byc-red); }
.btn.red:hover, .byc-btn-red:hover { background: #b52f2f; }
.btn.blue, .btn.blue.darken-1, .btn-large.blue { background: var(--byc-blue); }
.btn-flat {
    background: none;
    border: none;
    color: var(--byc-slate);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-flat:hover { background: rgba(13, 91, 215, .06); }
.btn[disabled], .btn-large[disabled], .byc-btn[disabled] {
    background: #b9c5d6 !important;
    cursor: not-allowed;
    transform: none;
}
.byc-btn-outline {
    background: transparent;
    color: var(--byc-blue);
    border: 1.5px solid #c9d8ef;
}
.byc-btn-outline:hover { background: #f1f6ff; color: var(--byc-blue); }

/* ---------- tables ---------- */
table { border-collapse: collapse; width: 100%; }
table th, table td { padding: 12px 15px; text-align: left; }
table.striped, table.highlight {
    border: 1px solid var(--byc-line);
    border-radius: 10px;
    overflow: hidden;
}
table.striped thead th, table.highlight thead th {
    background: var(--byc-bg);
    font-weight: 700;
    color: var(--byc-ink);
    font-size: 14px;
    border-bottom: 1px solid var(--byc-line);
}
table.striped tbody tr:nth-child(odd) { background: #fbfcfe; }
table.striped tbody tr, table.highlight tbody tr { border-bottom: 1px solid #eef2f8; }
table.highlight tbody tr:hover { background: var(--byc-bg); }

/* ---------- forms ---------- */
.byc-field { margin-bottom: 16px; }
.byc-field > label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #33445f;
    margin-bottom: 6px;
}
.byc-field input, .byc-field textarea, .byc-field select,
input.browser-default, select.browser-default, textarea.browser-default,
.byc-input {
    width: 100%;
    border: 1.5px solid #d6dfeb;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #17233a;
    background: #fbfcfe;
    transition: border-color .15s, box-shadow .15s;
}
.byc-field input:focus, .byc-field textarea:focus, .byc-field select:focus,
input.browser-default:focus, select.browser-default:focus, textarea.browser-default:focus,
.byc-input:focus {
    outline: none;
    border-color: var(--byc-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 91, 215, .1);
}
.byc-field textarea { resize: vertical; min-height: 90px; }
.byc-field .byc-hint { font-size: 12.5px; color: #8494ab; margin-top: 5px; display: block; }
.byc-field .byc-err { font-size: 12.5px; color: var(--byc-red); margin-top: 5px; display: block; }
input[type="checkbox"].byc-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--byc-blue);
}
.byc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) {
    .byc-field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- toasts ---------- */
#byc-toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.byc-toast {
    background: var(--byc-ink);
    color: #fff;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(5, 15, 35, .3);
    animation: byc-toast-in .25s ease;
    max-width: 340px;
}
.byc-toast.success { background: var(--byc-green); }
.byc-toast.error { background: var(--byc-red); }
.byc-toast i.material-icons { vertical-align: middle; font-size: 18px; margin-right: 6px; }
@keyframes byc-toast-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- modal ---------- */
.byc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 15, 30, .55);
    z-index: 1500;
    display: none;
}
.byc-modal-overlay.open { display: block; }
.modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 12vh;
    transform: translateX(-50%);
    z-index: 1600;
    background: #fff;
    border-radius: 14px;
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: 76vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(5, 15, 35, .35);
}
.modal.open { display: block; }
.modal .modal-content { padding: 34px; }
.modal .modal-footer {
    padding: 18px 34px 26px 34px;
    text-align: center;
}
.center-align { text-align: center; }
.right { float: right; }
.left { float: left; }

/* ---------- responsive visibility helpers ---------- */
@media (min-width: 993px) {
    .hide-on-large-only { display: none !important; }
}
@media (max-width: 992px) {
    .hide-on-med-and-down { display: none !important; }
}

/* ---------- text color utilities (legacy) ---------- */
.grey-text { color: #8494ab !important; }
.green-text { color: var(--byc-green) !important; }
.red-text { color: var(--byc-red) !important; }
.orange-text { color: var(--byc-amber-dark) !important; }
.blue-text { color: var(--byc-blue) !important; }
.white-text { color: #fff !important; }

/* ---------- material icons alignment ---------- */
i.material-icons { vertical-align: middle; }
.btn i.material-icons, .btn-large i.material-icons { font-size: 19px; }
i.material-icons.tiny { font-size: 16px; }
i.material-icons.left { margin-right: 6px; }

/* ============================================================
   LEGACY COMPATIBILITY LAYER (Materialize class names used by
   existing views, restyled in the BYC design language)
   ============================================================ */

/* ---------- grid ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px 14px -10px; }
.row::after { content: ""; display: table; clear: both; }
.row > [class*="col"] { padding: 0 10px; width: 100%; }
.col.s12 { width: 100%; }
.col.s6 { width: 50%; }
@media (min-width: 601px) {
    .col.m2 { width: 16.66%; }
    .col.m3 { width: 25%; }
    .col.m4 { width: 33.33%; }
    .col.m6 { width: 50%; }
    .col.m8 { width: 66.66%; }
    .col.m10 { width: 83.33%; }
    .col.m12 { width: 100%; }
    .col.offset-m2 { margin-left: 16.66%; }
    .col.offset-m3 { margin-left: 25%; }
}
@media (min-width: 993px) {
    .col.l3 { width: 25%; }
    .col.l4 { width: 33.33%; }
    .col.l6 { width: 50%; }
    .col.l8 { width: 66.66%; }
    .col.l12 { width: 100%; }
    .col.offset-l3 { margin-left: 25%; }
    .col.offset-l4 { margin-left: 33.33%; }
}

/* ---------- input-field (static labels, no float) ---------- */
.input-field {
    position: relative;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
}
.input-field > label {
    position: static !important;
    transform: none !important;
    order: -1;
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #33445f;
    margin-bottom: 6px;
    pointer-events: auto;
}
.input-field input:not([type="checkbox"]):not([type="radio"]),
.input-field textarea,
.input-field select {
    width: 100%;
    border: 1.5px solid #d6dfeb;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 14.5px;
    font-family: inherit;
    color: #17233a;
    background: #fbfcfe;
    height: auto;
    margin: 0;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.input-field input:not([type="checkbox"]):not([type="radio"]):focus,
.input-field textarea:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--byc-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 91, 215, .1);
}
.input-field .prefix { display: none; }
.input-field .helper-text {
    font-size: 12.5px;
    color: #8494ab;
    margin-top: 5px;
}
.input-field .helper-text.red-text { color: var(--byc-red) !important; }
textarea.materialize-textarea { min-height: 90px; resize: vertical; }

/* native checkboxes inside labels */
label > input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--byc-blue);
    margin-right: 8px;
    vertical-align: middle;
}
label > input[type="checkbox"] + span { font-size: 14px; color: #33445f; }
label > input[type="checkbox"] + span::before,
label > input[type="checkbox"] + span::after { display: none !important; }

/* ---------- legacy color panels ---------- */
.divider { height: 1px; background: var(--byc-line); border: none; }
.green.lighten-4 { background: #e8f7ee !important; border-color: #bfe6cd !important; }
.red.lighten-4 { background: #fdecec !important; border-color: #f5c6c3 !important; }
.blue.lighten-5, .blue.lighten-4 { background: #eef5ff !important; border-color: #cfe2ff !important; }
.grey.lighten-4 { background: #f5f7fa !important; }
.blue-grey.darken-1, .blue-grey.darken-3, .card.blue-grey {
    background: linear-gradient(150deg, #0c1f38 0%, #14406e 100%) !important;
    border-color: transparent !important;
}
.card.blue-grey .card-title { color: #fff; }
.text-darken-1, .text-darken-2, .text-darken-3, .text-darken-4 { /* handled by *-text colors */ }

/* waves (ripple) no-op */
.waves-effect { position: relative; overflow: hidden; }

