html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0B1F3A 0%, #123B6D 45%, #FF7A00 120%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 34px 18px 34px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
}

.logo-area {
    text-align: center;
    margin-bottom: 12px;
}

.login-logo {
    width: 260px;
    max-width: 100%;
}

.login-title {
    font-weight: 700;
    color: #0B1F3A;
    margin-top: 6px;
}

.login-subtitle {
    color: #64748B;
}

.login-button {
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(90deg, #0B4EA2, #1464D2) !important;
    color: white !important;
    font-weight: 700 !important;
    letter-spacing: .5px;
}

.register-button {
    height: 46px;
    border-radius: 14px;
    border-color: #FF7A00 !important;
    color: #FF7A00 !important;
    font-weight: 700 !important;
}

.forgot-button {
    color: #0B4EA2 !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.brand-footer {
    margin-top: 16px;
    text-align: right;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
}

/* PANEL GENEL */

.panel-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #eaf2ff 0, #f4f6f9 34%, #eef2f7 100%);
    padding: 16px;
}

.panel-topbar {
    min-height: 96px;
    padding: 12px 16px;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .10) !important;
    display: grid;
    grid-template-columns: 180px 1.35fr 1fr 1.35fr 120px 105px;
    gap: 14px;
    align-items: center;
}

.panel-logo-area {
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-logo {
    width: 150px;
    max-width: 100%;
    height: auto;
}

.panel-info-card {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.panel-info-icon {
    color: #0B4EA2;
}

.panel-info-card small {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.panel-info-card b {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.panel-info-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.panel-company-logo {
    height: 70px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #94a3b8;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    gap: 3px;
}

.panel-exit-button {
    height: 48px;
    border-radius: 14px !important;
    font-weight: 800 !important;
}

.panel-body {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    min-height: calc(100vh - 132px);
}

.panel-sidebar {
    width: 250px;
    min-width: 250px;
    padding: 16px;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .10) !important;
}

.panel-main-button {
    height: 52px;
    border-radius: 16px !important;
    background: linear-gradient(90deg, #0B4EA2, #FF7A00) !important;
    color: white !important;
    font-weight: 900 !important;
    margin-bottom: 18px;
    box-shadow: 0 10px 22px rgba(11, 78, 162, .20);
}

.panel-menu-group {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.panel-menu-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .9px;
    color: #64748b;
    text-transform: uppercase;
    margin: 0 0 8px 10px;
}

.panel-sidebar .mud-nav-link {
    border-radius: 14px !important;
    margin: 5px 0;
    font-weight: 800;
    color: #1e293b !important;
    min-height: 42px;
}

    .panel-sidebar .mud-nav-link:hover {
        background: #eef4ff !important;
    }

    .panel-sidebar .mud-nav-link.active {
        background: linear-gradient(90deg, rgba(11,78,162,.12), rgba(255,122,0,.12)) !important;
        color: #0B4EA2 !important;
    }

.panel-content {
    flex: 1;
    min-width: 0;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .09) !important;
    padding: 24px;
}

/* GENEL SAYFA */

.page-area {
    padding: 0;
}

.page-card {
    border-radius: 22px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.page-title,
.content-title {
    font-weight: 900 !important;
    color: #0B1F3A;
}

.text-end {
    text-align: right;
}

/* MUDBLAZOR GENEL DÜZELTMELER */

.mud-popover {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .20) !important;
    border-radius: 14px !important;
}

.mud-list,
.mud-list-item {
    background: #ffffff !important;
}

    .mud-list-item:hover {
        background: #eef4ff !important;
    }

/* MOBİL */

@media (max-width: 1100px) {
    .panel-topbar {
        grid-template-columns: 160px 1fr 1fr;
    }

    .panel-company-logo,
    .panel-exit-button {
        width: 100%;
    }
}

@media (max-width: 960px) {
    .panel-body {
        flex-direction: column;
    }

    .panel-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .panel-topbar {
        grid-template-columns: 1fr;
    }

    .panel-logo-area,
    .panel-info-card,
    .panel-company-logo {
        width: 100%;
    }

    .panel-exit-button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .login-card {
        padding: 28px 22px 16px 22px;
        border-radius: 22px;
    }

    .login-logo {
        width: 220px;
    }

    .panel-shell {
        padding: 10px;
    }

    .panel-content {
        padding: 16px;
    }
}

.mud-overlay {
    z-index: 5000 !important;
}

.mud-dialog-container {
    z-index: 5100 !important;
}

.mud-dialog {
    z-index: 5200 !important;
    position: relative !important;
}

.panel-company-logo {
    width: 115px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personel-topbar {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,.9);
}

.personel-top-logo img {
    width: 62px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.personel-top-info {
    display: grid;
    line-height: 1.1;
}

    .personel-top-info small {
        font-size: 11px;
        color: #64748b;
        font-weight: 800;
    }

    .personel-top-info b {
        font-size: 15px;
        color: #111827;
        font-weight: 950;
    }

    .personel-top-info span {
        font-size: 11px;
        color: #334155;
        font-weight: 800;
    }

.personel-exit-button {
    height: 38px;
    border-radius: 12px !important;
    font-weight: 900 !important;
}

.personel-content {
    width: 100%;
}

.panel-duyuru-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .55) !important;
    backdrop-filter: blur(5px);
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.panel-duyuru-popup {
    width: 680px !important;
    max-width: 96vw !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 22px !important;
    box-shadow: 0 25px 70px rgba(0,0,0,.30) !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
}

.panel-duyuru-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

    .panel-duyuru-header h3 {
        margin: 0 !important;
        font-size: 22px !important;
        font-weight: 950 !important;
        color: #111827 !important;
    }

    .panel-duyuru-header span {
        display: block !important;
        margin-top: 4px !important;
        color: #64748b !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

.panel-duyuru-close {
    width: 38px !important;
    height: 38px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #ef4444 !important;
    color: white !important;
    font-weight: 950 !important;
    cursor: pointer !important;
}

.panel-duyuru-list {
    overflow-y: auto !important;
    padding-right: 4px !important;
    display: grid !important;
    gap: 12px !important;
}

.panel-duyuru-item {
    border: 1px solid rgba(15,23,42,.10) !important;
    border-radius: 18px !important;
    padding: 16px !important;
    background: #f8fafc !important;
}

.panel-duyuru-item-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
}

    .panel-duyuru-item-head strong {
        color: #111827 !important;
        font-weight: 950 !important;
    }

    .panel-duyuru-item-head small {
        white-space: nowrap !important;
        color: #64748b !important;
        font-weight: 800 !important;
    }

.panel-duyuru-item p {
    margin: 0 0 12px 0 !important;
    color: #334155 !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
}

.panel-duyuru-hide-btn {
    border: none !important;
    border-radius: 12px !important;
    background: rgba(239,68,68,.12) !important;
    color: #b91c1c !important;
    padding: 8px 12px !important;
    font-weight: 950 !important;
    cursor: pointer !important;
}

.panel-duyuru-empty {
    padding: 18px !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 900 !important;
    text-align: center !important;
}

.panel-action-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
    align-items: stretch;
}

    .panel-action-stack .mud-button-root {
        height: 34px !important;
        min-height: 34px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        border-radius: 10px !important;
        padding: 0 10px !important;
    }

.panel-duyuru-button,
.panel-exit-button {
    width: 100%;
    margin: 0 !important;
}