/* Admin Panel Stilleri */

body {
    font-size: 14px;
}

.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #333;
    padding: 10px 20px;
    border-radius: 0;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    background-color: #2c1810;
    color: white;
}

main {
    margin-top: 56px;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #2c1810;
    color: white;
    font-weight: 600;
}

.btn-primary {
    background-color: #2c1810;
    border-color: #2c1810;
}

.btn-primary:hover {
    background-color: #4a2c1a;
    border-color: #4a2c1a;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

.badge {
    padding: 5px 10px;
}

.status-active {
    color: #28a745;
}

.status-inactive {
    color: #dc3545;
}

.status-pending {
    color: #ffc107;
}

.status-confirmed {
    color: #28a745;
}

.status-cancelled {
    color: #dc3545;
}

.status-unread {
    color: #007bff;
}

.status-read {
    color: #6c757d;
}

.image-preview {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.stats-card {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stats-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.form-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c1810;
    box-shadow: 0 0 0 0.2rem rgba(44, 24, 16, 0.25);
}

.alert {
    border-radius: 4px;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        width: 280px;
        height: calc(100vh - 56px);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1040;
        overflow-y: auto;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar.offcanvas-md {
        transform: translateX(0);
    }
    
    main {
        margin-top: 0;
        width: 100%;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

/* Offcanvas backdrop'u gizle (mobilde sayfa kararmasın) */
.offcanvas-backdrop {
    display: none !important;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* QR Kod Yazdırma Stilleri */
@media print {
    body * {
        visibility: hidden;
    }
    
    .qr-code-container,
    .qr-code-container * {
        visibility: visible;
    }
    
    .qr-code-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .qr-code-container img {
        max-width: 100%;
        max-height: 100vh;
        width: auto;
        height: auto;
    }
    
    @page {
        margin: 0;
        size: A4;
    }
}

/* Test Modu - Form ve Buton Devre Dışı Stilleri */
.test-mode-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.form-control[readonly],
.form-select[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

