@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
    --rc-bg: #f3f7f4;
    --rc-surface: rgba(255, 255, 255, 0.82);
    --rc-surface-strong: #ffffff;
    --rc-text: #102418;
    --rc-text-soft: #5f6f66;
    --rc-border: rgba(16, 36, 24, 0.1);
    --rc-primary: #1f8f5f;
    --rc-primary-dark: #136d46;
    --rc-secondary: #0f172a;
    --rc-sidebar-width: 286px;
    --rc-shadow: 0 18px 45px rgba(16, 36, 24, 0.12);
    --rc-radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rc-text);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(82, 180, 120, 0.14), transparent 26%),
        radial-gradient(circle at top right, rgba(9, 70, 52, 0.08), transparent 23%),
        linear-gradient(180deg, #f7faf7 0%, #edf4ef 100%);
}

h1,
h2,
h3,
h4,
.panel-logo-baslik,
.ozet-deger,
.panel-footer-sol strong {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    letter-spacing: -0.03em;
}

body.panel-body {
    min-height: 100vh;
}

.panel-kabuk {
    min-height: 100vh;
    display: flex;
    gap: 1rem;
    padding: 1rem 1rem 0;
}

.panel-sidebar {
    width: var(--rc-sidebar-width);
    flex: 0 0 var(--rc-sidebar-width);
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(73, 193, 122, 0.18), transparent 35%),
        linear-gradient(180deg, #13281c 0%, #102418 100%);
    box-shadow: 0 22px 52px rgba(16, 36, 24, 0.22);
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    z-index: 1042;
    transition: transform 0.26s ease;
}

.panel-logo {
    padding: 1.25rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.panel-logo-badge {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #8ff0b1, #1f8f5f);
    color: #092013;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(31, 143, 95, 0.28);
}

.panel-logo-baslik {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
}

.panel-logo-alt {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.panel-kullanici-kutu {
    margin: 1rem;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-kullanici-avatar-buyuk {
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-kullanici-kutu-yazi {
    min-width: 0;
}

.panel-kullanici-kutu-yazi strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-kullanici-kutu-yazi small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.panel-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.8rem 1rem;
}

.panel-menu-link {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-weight: 700;
    padding: 0.78rem 0.95rem;
    margin-bottom: 0.42rem;
    transition: all 0.22s ease;
}

.panel-menu-link i {
    width: 1.35rem;
    text-align: center;
    font-size: 1rem;
}

.panel-menu-link:hover,
.panel-menu-link:focus,
.panel-menu-link.aktif {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.panel-sidebar-arkaplan {
    display: none;
}

.panel-icerik {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.2rem;
}

.panel-ustbar {
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(16, 36, 24, 0.08);
    min-height: 64px;
    padding: 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    position: sticky;
    top: 1rem;
    z-index: 1030;
}

.panel-ustbar-sol {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.panel-ustbar-baslik h1 {
    margin: 0;
    color: var(--rc-text);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.panel-ustbar-sag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel-durum {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(31, 143, 95, 0.1);
    color: var(--rc-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.durum-isigi {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #2fd27b;
    box-shadow: 0 0 0 5px rgba(47, 210, 123, 0.14);
}

.panel-kullanici {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(16, 36, 24, 0.08);
    box-shadow: 0 12px 24px rgba(16, 36, 24, 0.06);
}

.panel-kullanici-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f8f5f, #49c17a);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.panel-kullanici-bilgi {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.panel-kullanici-bilgi strong {
    font-size: 0.82rem;
    color: var(--rc-text);
    font-weight: 700;
}

.panel-kullanici-bilgi small {
    font-size: 0.72rem;
    color: var(--rc-text-soft);
}

.panel-main {
    flex: 1;
    padding: 0.1rem;
}

.panel-footer {
    margin-bottom: 1rem;
    padding: 1rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 36px rgba(16, 36, 24, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.panel-footer-sol {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.panel-footer-sol span {
    color: var(--rc-text-soft);
    font-size: 0.82rem;
}

.panel-footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 143, 95, 0.1);
    color: var(--rc-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.panel-kart,
.filtre-kutusu {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--rc-radius);
    background: var(--rc-surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--rc-shadow);
    overflow: hidden;
}

.panel-kart {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-kart:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(16, 36, 24, 0.15);
}

.filtre-kutusu {
    padding: 1rem;
}

.ozet-kart {
    position: relative;
    border-left: 0;
}

.ozet-kart::after {
    content: "";
    position: absolute;
    inset: auto -18% -40% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 143, 95, 0.15), transparent 68%);
}

.ozet-baslik {
    color: var(--rc-text-soft);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.ozet-deger {
    color: var(--rc-text);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    box-shadow: none;
}

.btn-primary,
.btn-success,
.btn-info {
    border-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #1f8f5f, #49c17a);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #19744d, #3daf6d);
}

.btn-success {
    background: linear-gradient(135deg, #15803d, #22b163);
}

.btn-outline-secondary {
    border-color: rgba(16, 36, 24, 0.15);
    color: var(--rc-secondary);
    background: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: rgba(31, 143, 95, 0.25);
    background: rgba(31, 143, 95, 0.08);
    color: var(--rc-primary-dark);
}

.btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.28);
}

.form-control,
.form-select {
    min-height: 44px;
    border-radius: 14px;
    border-color: rgba(16, 36, 24, 0.12);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(31, 143, 95, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(31, 143, 95, 0.12);
}

.form-label {
    margin-bottom: 0.42rem;
    color: var(--rc-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid rgba(16, 36, 24, 0.08);
    color: var(--rc-text-soft);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.table td,
.table th {
    padding: 0.86rem 0.95rem;
    border-top: 1px solid rgba(16, 36, 24, 0.06);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(31, 143, 95, 0.06);
}

.table-responsive {
    border-radius: 16px;
}

.badge {
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.43rem 0.6rem;
}

.pagination .page-link {
    border: 0;
    color: var(--rc-text);
    border-radius: 12px;
    margin: 0 0.12rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 20px rgba(16, 36, 24, 0.06);
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background: linear-gradient(135deg, #1f8f5f, #49c17a);
}

.alert {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(16, 36, 24, 0.08);
}

.text-secondary,
.text-muted {
    color: var(--rc-text-soft) !important;
}

.login-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top left, rgba(143, 240, 177, 0.42), transparent 24%),
        radial-gradient(circle at bottom right, rgba(31, 143, 95, 0.24), transparent 28%),
        linear-gradient(135deg, #edf6ef 0%, #f7fbf8 48%, #e8f1eb 100%);
}

.login-box-modern {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.login-card {
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(16, 36, 24, 0.16);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.login-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.8rem;
    padding: 2.4rem 2.4rem 2.15rem;
    background: linear-gradient(135deg, rgba(17, 41, 28, 0.98), rgba(31, 143, 95, 0.92));
    color: #ffffff;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.44rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-brand-panel h1 {
    margin: 1rem 0 0.55rem;
    color: #ffffff;
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    line-height: 1.02;
}

.login-brand-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    line-height: 1.65;
}

.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.login-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    flex: 0 0 auto;
}

.login-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.login-feature-copy strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.login-feature-copy span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
    line-height: 1.5;
}

.login-form-panel {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 2.2rem;
    background: #ffffff;
}

.login-form-panel-inner {
    width: 100%;
}

.login-form-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.login-form-header h2 {
    margin: 0;
    color: #102418;
    font-size: 1.65rem;
    line-height: 1.15;
}

.login-form-header p {
    color: #526259;
    margin: 0.55rem 0 1.2rem;
    line-height: 1.55;
}

.login-field {
    margin-bottom: 0.85rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: #102418;
    font-size: 0.92rem;
    font-weight: 700;
}

.login-card .input-group {
    align-items: stretch;
}

.login-card .input-group-text {
    min-width: 52px;
    justify-content: center;
    border-radius: 0 16px 16px 0;
    border-color: #d6e2db;
    background: #f3f7f4;
    color: #526259;
}

.login-card .form-control {
    border-right: 0;
    border-color: #d6e2db;
    border-radius: 16px 0 0 16px;
    background: #f3f7f4;
    color: #102418;
    font-size: 0.98rem;
    padding-left: 1rem;
}

.login-card .form-control,
.login-card .input-group-text,
.login-card .btn-block {
    min-height: 56px;
}

.login-card .form-control::placeholder {
    color: #7a8a81;
}

.login-card .form-control:focus {
    background: #ffffff;
    border-color: rgba(31, 143, 95, 0.5);
}

.login-card .input-group:focus-within .input-group-text {
    background: #ffffff;
    border-color: rgba(31, 143, 95, 0.5);
    color: #1f8f5f;
}

.login-card .btn-block {
    margin-top: 0.2rem;
    border-radius: 16px;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
}

.login-helper-text {
    color: #66776e;
    font-size: 0.84rem;
    text-align: center;
    margin: 1rem 0 0;
    line-height: 1.55;
}

.login-demo-box {
    margin-top: 1rem;
    border: 1px solid rgba(16, 36, 24, 0.08);
    border-radius: 16px;
    background: rgba(247, 252, 249, 0.82);
    padding: 0.9rem;
}

.login-demo-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #1f8f5f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.login-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.login-demo-card {
    border: 1px solid rgba(16, 36, 24, 0.08);
    border-radius: 12px;
    background: #ffffff;
    padding: 0.62rem 0.7rem;
}

.login-demo-card small {
    display: block;
    color: #5f6f66;
    font-size: 0.73rem;
    margin-bottom: 0.14rem;
}

.login-demo-card strong {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 0.92rem;
    color: #102418;
}

.login-demo-note {
    margin-top: 0.6rem;
    color: #526259;
    font-size: 0.78rem;
}

.rc-inline-alert {
    border: 1px solid rgba(220, 53, 69, 0.12);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    background: #fff3f4;
    color: #8d1b28;
}

@media (max-width: 991.98px) {
    .panel-kabuk {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .panel-sidebar {
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        transform: translateX(calc(-100% - 1rem));
        height: calc(100vh - 1.5rem);
        margin: 0;
    }

    .panel-sidebar.acik {
        transform: translateX(0);
    }

    .panel-sidebar-arkaplan {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(6, 16, 11, 0.45);
        backdrop-filter: blur(2px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .panel-sidebar-arkaplan.acik {
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-acik {
        overflow: hidden;
    }

    .panel-ustbar {
        top: 0.75rem;
        padding-right: 0.65rem;
        padding-left: 0.5rem;
    }

    .panel-durum {
        display: none;
    }

    .panel-kullanici-bilgi {
        display: none;
    }

    .panel-kullanici {
        padding-left: 0.45rem;
        padding-right: 0.35rem;
    }

    .panel-main {
        padding: 0;
    }

    .panel-footer {
        margin-bottom: 0.75rem;
    }

    .login-box-modern {
        width: min(860px, 100%);
    }

    .login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .login-brand-panel,
    .login-form-panel {
        padding: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .panel-ustbar-baslik h1 {
        font-size: 1.05rem;
    }

    .panel-ustbar-sag {
        gap: 0.45rem;
    }

    .panel-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .table td,
    .table th {
        padding: 0.72rem;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        gap: 1.25rem;
        padding: 1.5rem 1.25rem 1.1rem;
    }

    .login-form-panel {
        padding: 1.2rem 1.25rem 1.35rem;
    }

    .login-demo-grid {
        grid-template-columns: 1fr;
    }

    .login-brand-panel h1 {
        font-size: 1.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
