html, body {
    height: 100%;
    width: 100%; /* <-- 105% ve 107% kaldırıldı */
    margin: 0;
    overflow-x: hidden; /* güvenlik: yatay kaydırmayı engelle */
    box-sizing: border-box;
    background-image: url(../images/backgraund.png);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    background: #f7f7f9;
    overflow-x: hidden;
    background-image: url(../images/backgraund.png);
}

/* --- .auth-only { display:flex; align-items:center; justify-content:center; min-height:100vh; } --- */

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.login-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    width: 360px;
}

.login-title {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.hint {
    margin-top: 12px;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-image: url('../images/backgraund.png');
    border-bottom: 0px solid #eee;
    position: sticky;
    top: 0;
    z-index: 5;
}

.menu-btn {
    font-size: 20px;
    background: none;
    border: 0;
    cursor: pointer;
}

.topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logout-btn {
    border: none;
    background: transparent;
    padding: 0;
}

.content-area {
    margin-left: 0;
}

.page-title {
    font-size: 20px;
    margin: 0; /* margin ile oynamaya gerek yok */
    text-align: center;
}

.page-body {
    background-image: url('../images/backgraund.png');
    width: 100%;
}

.dashboard .welcome-card {
    background: #fff;
    border-radius: 12px;
    /*padding: 20px;*/
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    margin-bottom: 16px;
    max-width: 1150px;
    margin-inline: auto;
    padding: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}

.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    margin-top: 16px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Chipster-like login styles --- */
.chipster-login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.chipster-login-card {
    width: 420px;
    max-width: 94vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    overflow: hidden;
}

.chipster-login-header {
    background: #d81b60;
    color: #fff;
    padding: 18px 22px;
}

.chipster-logo {
    font-weight: 800;
    letter-spacing: .5px;
}

.chipster-form {
    padding: 20px;
}

.chipster-field {
    margin-bottom: 14px;
}

    .chipster-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
        color: #333;
    }

.chipster-input {
    width: 90%;
    background: #fff;
    border: 1px solid #e3e3e7;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
}

    .chipster-input:focus {
        border-color: #d81b60;
        box-shadow: 0 0 0 3px rgba(216,27,96,.12);
    }

.chipster-password {
    position: relative;
}

.chipster-eye {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f6f6f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.chipster-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}

.chipster-captcha-box {
    width: 90px;
    height: 44px;
    background: #efefef;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 700;
    letter-spacing: 2px;
}

.chipster-captcha-refresh {
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.chipster-captcha-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.chipster-submit {
    width: 100%;
    border: 0;
    background: #d81b60;
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 6px;
}

    .chipster-submit:hover {
        filter: brightness(.95);
    }

.chipster-demo-hint {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

/* Drawer: kapalıyken görünmesin */
#drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

    #drawer .drawer-overlay {
        position: absolute;
        inset: 0;
        background: rgba(16, 24, 40, .35);
        backdrop-filter: blur(10px);
        opacity: 0;
        transition: opacity .25s ease;
        pointer-events: none;
    }

    #drawer .drawer-panel {
        position: absolute;
        top: 0;
        left: -1000px;
        width: 100%;
        height: 95%;
        padding: 2px;
        transition: left .25s ease;
        max-width: 100vw;
    }

    #drawer.open {
        pointer-events: auto;
    }

        #drawer.open .drawer-overlay {
            opacity: 1;
            pointer-events: auto;
        }

        #drawer.open .drawer-panel {
            left: 0;
        }

/* Kart (glass + pembe blur lekesi) */
.chip-menu-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: rgba(255,255,255,.75);
    border: 0px solid rgba(255,255,255,.5);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 44px rgba(0,0,0,.28);
    position: relative;
}

    .chip-menu-card::before {
        content: "";
        position: absolute;
        left: -40px;
        top: 140px;
        width: 220px;
        height: 220px;
        background: radial-gradient(120px 120px at 60% 50%, rgba(236,72,153,.45), rgba(236,72,153,0));
        filter: blur(6px);
        pointer-events: none;
    }

/* header */
.chip-menu-head {
    display: flex;
    justify-content: space-between;
    height: 50px;
    margin-left: 18px;
}

.chip-menu-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chip-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.chip-user-txt {
    line-height: 1.1;
}

    .chip-user-txt strong {
        font-weight: 700;
        color: #111827;
    }

    .chip-user-txt span {
        display: block;
        font-size: 12px;
        color: #6b7280;
    }

.chip-menu-x {
    margin-left: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
}

    .chip-menu-x:hover {
        background: rgba(0,0,0,.05);
    }

.chip-menu-sep {
    height: 1px;
    background: rgba(0,0,0,.08);
    margin: 10px 0 12px;
}

/* liste */
.chip-menu-list {
    flex: 1 1 auto; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    padding: 20px;
}

    .chip-menu-list a {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255,255,255,.75);
        padding: 16px 12px;
        border-radius: 10px;
        text-decoration: none;
        color: #111827;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
        transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
    }

        .chip-menu-list a:hover {
            background: #fff;
            transform: translateY(-1px);
            box-shadow: 0 2px 10px rgba(0,0,0,.06);
        }

.chip-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.chip-menu-list::-webkit-scrollbar {
    width: 6px;
}

.chip-menu-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 3px;
}
/* alt buton */
.chip-push-btn {
    margin-top: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: #2563eb;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(37,99,235,.35);
}

    .chip-push-btn:hover {
        filter: brightness(1.05);
    }

/* Masaüstünde içerik görünür kalsın (slide-over) */
@media (min-width: 992px) {
    #drawer .drawer-overlay {
        background: rgba(16,24,40,.25);
        backdrop-filter: none;
    }

    #drawer .drawer-panel {
        left: 0;
        width: 360px;
        height: 97%;
    }

    #drawer:not(.open) .drawer-overlay {
        opacity: 0;
        pointer-events: none;
    }

    #drawer:not(.open) .drawer-panel {
        left: -360px;
    }
}
