/* ─────────────────────────────── */
/* GLOBAL */
/* ─────────────────────────────── */

body {
    font-family: "Poppins", sans-serif;
    background: #f1f4fb;
    margin: 0;
    overflow-x: hidden;
}

.main-wrapper {
    margin-left: 250px;
    transition: 0.3s ease;
}

@media (max-width: 991px) {
    .main-wrapper {
        margin-left: 0 !important;
    }
}

/* ─────────────────────────────── */
/* SIDEBAR */
/* ─────────────────────────────── */

.sidebar {
    width: 250px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 25px 18px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    transition: transform 0.35s ease;
    transform: translateX(0);
}

.sidebar .brand h2 {
    font-weight: 700;
    font-size: 22px;
    color: #0d1b2a;
    margin-bottom: 40px;
}

.sidebar ul {
    padding: 0;
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 14px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    color: #0d1b2a;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.sidebar ul li a:hover {
    background: #eaf3ff;
    color: #2563eb;
    transform: translateY(-3px);
}

/* Sidebar close button (mobile) */
.close-sidebar {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #0d1b2a;
    position: absolute;
    top: 22px;
    right: 20px;
}

.sidebar.open .close-sidebar {
    display: block;
}

/* MOBILE VERSION */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-260px);
        border-right: none;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
        border-radius: 0 20px 20px 0;
    }
}

/* ─────────────────────────────── */
/* OVERLAY (mobile) */
/* ─────────────────────────────── */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.25);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ─────────────────────────────── */
/* TOPBAR */
/* ─────────────────────────────── */

.topbar {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 15;
    transition: 0.3s ease;
}

.topbar .left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar .left h1 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

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

@media (max-width: 991px) {
    .topbar {
        left: 0 !important;
    }

    .hamburger {
        display: block !important;
    }
}

/* ─────────────────────────────── */
/* CONTENT */
/* ─────────────────────────────── */

.content {
    margin-top: 90px;
    padding: 30px;
}

/* ─────────────────────────────── */
/* DASHBOARD CARDS */
/* ─────────────────────────────── */

.dashboard-cards {
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.stat-card .icon {
    font-size: 45px;
    opacity: 0.25;
    position: absolute;
    right: 15px;
    top: 12px;
}

.stat-card.orange {
    background: #ffb86c;
}
.stat-card.green {
    background: #63d471;
}
.stat-card.red {
    background: #ff6f6f;
}
.stat-card.blue {
    background: #6c8cff;
}

/* ─────────────────────────────── */
/* PANELS */
/* ─────────────────────────────── */

.panel-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.panel-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 15px;
}

/* Highlights */
.highlight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fb;
    margin-bottom: 12px;
}

.highlight-item img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.tag {
    padding: 3px 7px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
}

.tag.blue {
    background: #6c8cff;
}
.tag.orange {
    background: #ffb86c;
}
.tag.purple {
    background: #9b6cff;
}

.amount.green {
    color: #4caf50;
}
.amount.red {
    color: #f44336;
}

/* Chart fix height */
.panel-box canvas {
    height: 250px !important;
}
/* LOGIN PAGE */
.login-page {
    background: #f1f4fb;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Genişlik net sabit → kayma tamamen biter */
.login-card {
    width: 480px; /* SABİT GENİŞLİK  */
    background: #ffffff;
    border-radius: 28px;
    padding: 50px 40px; /* SAĞ-SOL %100 EŞİT */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* Başlık */
.login-title {
    font-size: 34px;
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Input → tam 100% simetrik */
.login-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    margin-bottom: 18px;

    border: 1px solid #e6e9f0;
    border-radius: 14px;
    background: #fff;

    box-sizing: border-box; /* KRİTİK: gerçek genişlik bozulmasın */
}

/* Focus */
.login-input:focus {
    border-color: #6c8cff;
    box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.2);
    outline: none;
}

/* Button */
.login-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #6c8cff;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

.login-btn:hover {
    background: #5877ff;
}
/* Kullanıcı kutusu */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    background: #f4f6fb;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.2s ease;
}

.user-info:hover {
    background: #e8eefb;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

/* Dropdown menü */
.user-dropdown .dropdown-menu {
    position: absolute;
    right: 0;
    top: 54px;

    width: 180px;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

    padding: 8px 0;
    list-style: none;

    display: none;
    z-index: 999;
}

.user-dropdown .dropdown-menu li,
.user-dropdown .dropdown-menu form button {
    padding: 12px 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;

    transition: 0.2s ease;
}

.user-dropdown .dropdown-menu li:hover,
.user-dropdown .dropdown-menu form button:hover {
    background: #f1f4fa;
    color: #2563eb;
}

/* Mobile uyarlama */
@media (max-width: 991px) {
    .user-info {
        padding: 8px 12px;
    }

    .user-name {
        font-size: 13px;
    }
}
/* ─────────────────────────────── */
/* ADMIN LISTE PASTEL UI */
/* ─────────────────────────────── */

.admin-list-box {
    padding: 25px;
}

/* Daha modern pastel tablo */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.admin-table thead th {
    background: none !important;
    font-weight: 600;
    color: #475569;
    border: none;
}

.admin-table tbody tr {
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    overflow: hidden;
}

.admin-table tbody tr td {
    padding: 16px 18px !important;
    vertical-align: middle;
    color: #1e293b;
    border: none !important;
}

/* Küçük ID yazısı */
.admin-small-text {
    font-size: 12px;
    color: #94a3b8;
}

/* Rol Badge */
.role-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.pastel-purple {
    background: #9b6cff;
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}
.pastel-green {
    background: #63d471;
    color: #fff;
}
.pastel-red {
    background: #ff6f6f;
    color: #fff;
}

/* PASTEL BUTTONS */
.pastel-btn-blue {
    background: #6c8cff;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
}
.pastel-btn-blue:hover {
    background: #5877ff;
}

/* tiny action buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    margin-left: 6px;
    cursor: pointer;
}

.pastel-btn-orange {
    background: #ffb86c;
    color: white;
}
.pastel-btn-orange:hover {
    background: #eaa45a;
}

.pastel-btn-red {
    background: #ff6f6f;
    color: white;
}
.pastel-btn-red:hover {
    background: #e55b5b;
}
/* TABLO */
.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
}

.table thead th {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    border: none !important;
    padding: 10px 18px;
}

.table tbody tr {
    background: #ffffff;
    border-radius: 14px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.table tbody tr td {
    padding: 18px;
    vertical-align: middle !important; /* 🔥 TAM ORTALAMA */
    font-size: 15px;
    color: #1f2937;
    border: none !important;
}

/* İSİM + ID ALANI */
.table .name-cell {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.table .name-id {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ROL BADGE */
.role-badge {
    background: #c084fc;
    color: #fff;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
}
/* BUTON GRUBU */
.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn-edit {
    background: #fcd34d;
    color: white;
    border-radius: 12px;
    padding: 10px 12px;
    border: none;
}

.action-buttons .btn-delete {
    background: #f87171;
    color: white;
    border-radius: 12px;
    padding: 10px 12px;
    border: none;
}

/* YENİ ADMIN BUTONU */
.btn-add {
    background: #6c8cff;
    padding: 12px 22px;
    color: #fff !important;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #5972ff;
}
/* ---------------------- */
/* FORM FIELD MODERN STYLE */
/* ---------------------- */

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0 16px;
    font-size: 15px;
    background: #fff;
    transition: 0.25s;
}

.form-control:focus {
    border-color: #6c8cff;
    box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.25);
}

/* form spacing */
.form-group {
    margin-bottom: 22px;
}

/* Button same as login btn */
.btn-save {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #6c8cff;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}

.btn-save:hover {
    background: #5877ff;
}
