/* style.css */
:root {
    --main-bg: #f8fafc;
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-blue: #0284c7;
    --accent-green: #10b981;
    --accent-danger: #ef4444;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--main-bg) !important;
    color: var(--text-main) !important;
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Geri Getirilen ve Sabitlenen Sol Menü */
#sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: all 0.25s ease-in-out;
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

#sidebar.collapsed {
    margin-left: -260px;
}

.nav-custom-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 12px;
}

.nav-custom-link:hover {
    background: var(--main-bg);
    color: var(--accent-blue);
}

.nav-custom-link.active-link {
    background: #f0fdf4;
    color: var(--accent-green);
    border-left: 4px solid var(--accent-green);
}

.main-content-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--main-bg);
    transition: all 0.25s ease-in-out;
}

.top-action-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.card-flat {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.table th {
    background: var(--main-bg) !important;
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.table th:hover {
    background: #f1f5f9 !important;
}

.col-filter-input {
    display: none;
    margin-top: 5px;
    font-weight: normal;
    font-size: 11px;
    padding: 2px 6px;
    width: 100%;
}

.col-filter-input.show-filter {
    display: block;
}

/* Şık Rakamlı Sayfalama Tasarımı */
.mks-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.mks-page-btn {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mks-page-btn:hover {
    background: var(--main-bg);
    border-color: var(--text-muted);
}

.mks-page-btn.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.mks-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
}
#reader {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important; /* Vizörü kareye zorlar */
    object-fit: cover !important;
}