body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #222;
}

.centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 360px;
}

h1, h2, h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}

input, select, button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    margin-top: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

button:hover {
    background: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    background: #ffdddd;
    color: #a30000;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.topbar {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar .title {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.main {
    padding: 16px;
    max-width: 960px;
    margin: 16px auto 32px;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.qr-container {
    text-align: center;
    margin-top: 16px;
}

.qr-container img {
    max-width: 260px;
}

.actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.actions button {
    flex: 1;
}

.status-message {
    margin-top: 12px;
    font-size: 14px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.table th {
    background: #f0f0f0;
    text-align: left;
}
.table tbody tr:nth-child(even) {
    background: #fafafa;
}

.table tbody tr:hover {
    background: #e5f2ff;
}

.search-row input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    padding: 4px 10px;
    font-size: 12px;
    background: #ffffff;
}

/* DataTables genel görünüm iyileştirmeleri */
.dataTables_wrapper {
    margin-top: 8px;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 8px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    padding: 4px 10px;
    font-size: 13px;
    background: #f9fafb;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 180px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    border-radius: 9999px !important;
    border: 1px solid transparent !important;
    padding: 4px 12px !important;
    margin: 0 2px !important;
    background: #ffffff !important;
    color: #2563eb !important;
    font-size: 13px;
}

/* Bootstrap 5 pagination iç dikdörtgen kenarlıklarını kaldır */
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link,
.dataTables_wrapper .dataTables_paginate .page-link {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: transparent !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
    cursor: default !important;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.filters {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filters-row > div {
    flex: 1;
    min-width: 140px;
}

.company-logo {
    max-height: 40px;
    max-width: 150px;
    margin-right: 8px;
    height: auto;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-top: 16px;
}

.two-column-left {
    flex: 0 0 320px;
    max-width: 360px;
}

.two-column-right {
    flex: 1 1 0;
    min-width: 0;
}

.user-form {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 800px) {
    .two-column {
        flex-direction: column;
    }

    .two-column-left,
    .two-column-right {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

.summary-box {
    margin-top: 16px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    font-size: 14px;
}

.summary-box div {
    margin-bottom: 4px;
}

.summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.summary-card {
    flex: 1 1 160px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 22px;
    font-weight: 600;
}

.qr-reader {
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
    margin: 16px auto;
}

.status-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 14px;
}

.help-text {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.footer {
    padding: 12px 16px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background-color: #f9fafb;
}

.login-card {
    max-width: 380px;
    text-align: center;
}

.login-logo {
    max-height: 52px;
    max-width: 200px;
    margin-bottom: 10px;
}

.login-title {
    margin-bottom: 4px;
}

.login-subtitle {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}

@media (max-width: 600px) {
    .company-logo {
        max-height: 28px;
        max-width: 110px;
    }

    .topbar-inner {
        padding: 8px 12px;
    }
}

.nav-links a {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 9999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.nav-links a:hover {
    background: #e5e7eb;
}

.nav-user {
    margin-left: 10px;
    font-size: 13px;
    color: #6b7280;
}

.topbar-right a {
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.topbar-right a:hover {
    text-decoration: underline;
}
