* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    background: #f7f7f7;
}

/* Sol Menü */
.sidebar {
    width: 260px;
    background: #0f223a;
    color: white;
    height: 100vh;
    padding: 20px;
    position: fixed;
}

.sidebar .logo {
    text-align: center;
}

.sidebar .logo img {
    width: 80px;
    margin-bottom: 10px;
}

.sidebar h2 {
    font-size: 16px;
    margin-bottom: 25px;
}

.sidebar .menu li {
    list-style: none;
    margin: 18px 0;
}

.sidebar .menu li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

/* Ana İçerik */
.content {
    margin-left: 260px;
    padding: 20px;
    width: calc(100% - 260px);
}

/* Üst Bar */
.topbar {
    background: #10233f;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.topbar-right i {
    font-size: 20px;
    margin-left: 15px;
    cursor: pointer;
}

.topbar .profile img {
    width: 35px;
    border-radius: 50%;
    margin-left: 15px;
}

/* Bilgilendirme */
.alert {
    background: #2fa544;
    color: white;
    padding: 15px 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.alert .close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Kartlar */
.cards {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border-radius: 10px;
    color: white;
    height: 130px;
}

.card a {
    color: white;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.blue { background: #064a86; }
.green { background: #34a853; }
.lightblue { background: #2196f3; }
.gray { background: #4a627a; }

/* RESPONSIVE TASARIM – TELEFON GÖRÜNÜMÜ */
@media (max-width: 768px) {

    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 600px) {

    .sidebar {
        position: absolute;
        width: 200px;
        left: -200px;
        transition: 0.3s;
    }

    .sidebar.open {
        left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
/* Accordion Menü */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
    padding: 8px 0;
}

.accordion-header .arrow {
    transition: 0.3s;
}

.accordion-header .rotate {
    transform: rotate(180deg);
}

.accordion-body {
    list-style: none;
    margin-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body.open {
    max-height: 600px; /* yeterince yüksek bırak */
}

.accordion-body li {
    margin: 8px 0;
}

.accordion-body li a {
    color: #cfd8e3;
    text-decoration: none;
    font-size: 14px;
}

.accordion-body li a:hover {
    text-decoration: underline;
}
.not-header {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.not-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.not-table th {
    background: #10233f;
    color: white;
    padding: 12px;
    font-size: 14px;
}

.not-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.kirmizi {
    color: #d50000;
    font-weight: bold;
}

.istatistik {
    padding: 5px 10px;
    border: none;
    background: #0f223a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.not-aciklama {
    margin-top: 25px;
    background: #e6f6ff;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.6;
}
/* ============================
   MOBİL UYUMLULUK (RESPONSIVE)
   ============================ */
@media(max-width: 768px) {

    /* Sidebar mobilde küçülsün */
    .sidebar {
        width: 180px;
    }

    /* İçerik sağa doğru taşmasın */
    .content {
        margin-left: 180px;
        padding: 10px;
    }

    /* Kartlar alt alta dizilsin */
    .cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Tablo taşarsa kaydır */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Profil fotoğrafı */
    .topbar .profile img {
        width: 35px;
        height: 35px;
    }
}
