/* --- Temel Ayarlar ve Değişkenler --- */
:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --bg-color: #f4f7fe;
    --card-bg: #ffffff;
    --text-dark: #2b3674;
    --text-muted: #a3aed1;
    --sidebar-width: 260px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    overflow-x: hidden;
}

/* --- Sidebar Tasarımı --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--card-bg);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar-logo {
    padding: 30px 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    flex: 1;
    padding: 0 15px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
}

.sidebar-menu a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-menu li.active a, .sidebar-menu a:hover {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e63946;
    font-weight: 500;
}

/* --- Ana İçerik ve Header --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    min-height: 100vh;
}

.top-header {
    height: 80px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.notification {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

.notification .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f72585;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* --- İçerik Alanı & Kartlar --- */
.content-area {
    padding: 0 30px 30px 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 24px;
    font-weight: 700;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.main-card h3 {
    margin-bottom: 15px;
}

/* --- Mobil Uyumluluk (Responsive) --- */
/* Ekran daraldığında Sidebar gizlenir */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .top-header {
        padding: 0 15px;
    }
    .content-area {
        padding: 0 15px 15px 15px;
    }
    .page-title {
        font-size: 20px;
    }
    .user-name {
        display: none; /* Mobilde yer kazanmak için ismi gizle, avatar kalsın */
    }
}
/* --- Tablo ve Form Stilleri --- */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.custom-table th, .custom-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
}

.custom-table th {
    background-color: #f8f9fc;
    font-weight: 600;
    color: var(--text-muted);
}

.custom-table tbody tr:hover {
    background-color: #fcfcfc;
}

.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(46, 196, 182, 0.1);
    color: #2ec4b6;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
/* --- Modern Buton Stilleri --- */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
    outline: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px); /* Üzerine gelince hafif yukarı kalkar */
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.35); /* Gölgesi büyür */
}

.btn-primary:active {
    transform: translateY(0); /* Tıklanınca basılma hissi verir */
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.2);
}