:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #9bbae3;
    --shadow-sm: 0 1px 1px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 8px 0 rgba(0, 0, 0, 0.08);
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

/* Gutter değerlerini zorunlu kıl - özellikle mobilde */
.container-fluid,
.container-fluid .row,
.row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

/* Mobilde gutter-x'i zorunlu kıl - padding ile override */
@media (max-width: 991.98px) {
    .container-fluid .row > *,
    .row > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .container-fluid .row,
    .row {
        --bs-gutter-x: 1rem;
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
    padding: 0.5rem 0.375rem;
}

.navbar {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Toast Notification Container */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 400px;
}

.toast-notification {
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    animation: slideInRight 0.3s ease-out;
    border-left: 2px solid;
    min-height: 40px;
}

.toast-notification.success {
    border-left-color: var(--success-color);
}

.toast-notification.error {
    border-left-color: var(--danger-color);
}

.toast-notification.warning {
    border-left-color: var(--warning-color);
}

.toast-notification.info {
    border-left-color: var(--info-color);
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-notification.success .toast-icon {
    color: var(--success-color);
}

.toast-notification.error .toast-icon {
    color: var(--danger-color);
}

.toast-notification.warning .toast-icon {
    color: var(--warning-color);
}

.toast-notification.info .toast-icon {
    color: var(--info-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
    color: var(--dark-color);
}

.toast-message {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    white-space: pre-line;
}

.toast-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.toast-details strong {
    color: var(--dark-color);
    font-weight: 600;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--dark-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.625rem 0.875rem;
    font-weight: 500;
    font-size: 0.8125rem;
}

.card-header h4, .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.card-body {
    padding: 0.875rem;
}

/* Form Elements - Mobil First */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    display: block;
}

.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.4375rem 0.625rem;
    font-size: 16px; /* iOS zoom önleme için minimum 16px */
    transition: all 0.15s;
    background: white;
    min-height: 36px;
    -webkit-appearance: none;
    appearance: none;
}

/* Desktop'ta daha küçük font */
@media (min-width: 769px) {
    .form-control, .form-select {
        font-size: 0.8125rem;
    }
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.08);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Cari Adı Label */
.cari-adi-label {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--secondary-color);
    font-weight: 500;
    padding-left: 0.25rem;
}

/* Buttons - Mobil First */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.15s;
    border: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3125rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-sm {
    padding: 0.3125rem 0.625rem;
    font-size: 0.75rem;
    min-height: 28px;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Default Page - Modern & Professional */
.default-page {
    padding: 1.5rem 0.875rem;
    min-height: calc(100vh - 100px);
    display: contents;
    align-items: baseline;
    justify-content: center;
}

.default-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.default-header.d-flex {
    text-align: left;
}

.default-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.375rem;
    letter-spacing: -0.3px;
}

.default-subtitle {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 400;
}

.fatura-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.fatura-option {
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fatura-option:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}

.fatura-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.15);
    transform: translateY(-2px);
}

.fatura-option.selected .option-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.fatura-option.selected .option-check {
    opacity: 1;
    transform: scale(1);
}

.option-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.option-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.fatura-option.selected .option-icon i {
    color: white;
}

.option-content {
    flex: 1;
    min-width: 0;
}

.option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.2px;
}

.option-description {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.5;
}

.option-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.option-check i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.default-actions {
    text-align: center;
}

.btn-continue {
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4375rem;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
    letter-spacing: 0.2px;
}

.btn-continue:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
}

.btn-continue:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.btn-continue:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-continue:active:not(:disabled) {
    box-shadow: var(--shadow-sm);
}

.btn-continue:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Fatura Tip Cards - Legacy (for other pages) */
.fatura-tip-card {
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    border: 2px solid var(--border-color);
}

.fatura-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.fatura-tip-card.selected {
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: var(--shadow-md);
}

.fatura-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Hareket Items */
.hareket-item {
    background: white;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.625rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.15s;
    padding-bottom: 2.5rem;
}

.hareket-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Sil Butonu - Sağ Altta Küçük */
.btn-delete-hareket {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-delete-hareket:hover {
    background: #dc2626;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-delete-hareket:active {
    transform: scale(0.95);
}

.btn-delete-hareket i {
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Cari Arama Modal */
.cari-item {
    transition: all 0.15s;
    border: 1px solid var(--border-color);
}

.cari-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.cari-item.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.cari-item .card-body {
    padding: 0.75rem;
}

.cari-item h6 {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.cari-item small {
    font-size: 0.75rem;
}

.cari-item .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-height: 32px;
}

/* Stok Arama Modal */
.stok-item {
    position: relative;
}

.stok-item .card-body {
    padding: 0.75rem;
    padding-bottom: 2.5rem;
}

.stok-item h6 {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

.stok-item small {
    font-size: 0.75rem;
}

/* Stok Seç Butonu - Sağ Altta Küçük */
.btn-select-stok {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-select-stok:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-select-stok:active {
    transform: scale(0.95);
}

.btn-select-stok i {
    font-size: 0.875rem;
}

/* Cari Seç Butonu - Sağ Altta Küçük */
.btn-select-cari {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-select-cari:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-select-cari:active {
    transform: scale(0.95);
}

.btn-select-cari i {
    font-size: 0.875rem;
}

/* Cari Item - Position Relative */
.cari-item {
    position: relative;
}

.cari-item .card-body {
    padding-bottom: 2.5rem;
}

.modal-content {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 6px 6px 0 0;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
}

.modal-header .modal-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.modal-header .btn-close {
    filter: invert(1);
    font-size: 0.75rem;
    padding: 0.25rem;
    width: 20px;
    height: 20px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.875rem;
    font-size: 0.8125rem;
}

.modal-body .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.modal-body .form-control,
.modal-body .form-select {
    font-size: 16px; /* iOS zoom önleme için minimum 16px */
    padding: 0.4375rem 0.625rem;
    min-height: 36px;
}

/* Desktop'ta daha küçük font */
@media (min-width: 769px) {
    .modal-body .form-control,
    .modal-body .form-select {
        font-size: 0.8125rem;
    }
}

.modal-body .small,
.modal-body small {
    font-size: 0.75rem;
}

.modal-body .fw-bold {
    font-size: 0.8125rem;
}

.modal-footer {
    padding: 0.625rem 0.75rem;
    border-top: 1px solid var(--border-color);
    gap: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.4375rem 0.875rem;
    font-size: 0.8125rem;
    min-height: 36px;
    flex: 0 0 auto;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
}

.input-group .btn {
    min-height: 36px;
    padding: 0.4375rem 0.625rem;
    font-size: 0.8125rem;
    flex: 0 0 auto;
    width: auto;
    min-width: 50px;
}

@media (max-width: 576px) {
    .input-group .btn {
        padding: 0.5rem;
        min-width: 50px;
    }
    
    .input-group .btn span {
        display: none;
    }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* UpdatePanel Loading */
.update-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.update-progress-content {
    text-align: center;
    color: var(--primary-color);
}

.update-progress-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(30, 58, 138, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

/* Initial Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.loading-content {
    text-align: center;
    color: var(--primary-color);
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(30, 58, 138, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobil Optimizasyonlar */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    main {
        padding: 0.375rem 0.25rem;
    }
    
    .default-page {
        padding: 1.25rem 0.625rem;
    }
    
    .default-title {
        font-size: 1.25rem;
    }
    
    .default-subtitle {
        font-size: 0.75rem;
    }
    
    .fatura-option {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
    }
    
    .option-icon i {
        font-size: 1.25rem;
    }
    
    .option-title {
        font-size: 0.9375rem;
    }
    
    .option-description {
        font-size: 0.75rem;
    }
    
    .btn-continue {
        width: 100%;
        max-width: none;
    }
    
    .card-body {
        padding: 0.625rem;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .row.g-3 {
        --bs-gutter-y: 0.5rem !important;
        --bs-gutter-x: 1rem !important;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* iOS zoom önleme */
        padding: 0.625rem 0.75rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .fatura-icon {
        font-size: 2.5rem;
    }
    
    #toastContainer {
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        max-width: none;
    }
    
    .toast-notification {
        padding: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .row.g-3 > * {
        margin-bottom: 0.375rem;
    }
    
    .hareket-item {
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 0.5rem;
    }
    
    .form-control, .form-select {
        padding: 0.5rem 0.625rem;
        font-size: 16px;
    }
    
    .toast-notification {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .card-header {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Tablet ve üzeri */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Cari ve Stok Arama Item Stilleri */
.cari-item, .stok-item {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.cari-item:hover, .stok-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cari-item.selected, .stok-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(30, 58, 138, 0.05);
}

.cari-item .card-body, .stok-item .card-body {
    padding: 1rem;
}

.cari-item h6, .stok-item h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cari-item small, .stok-item small {
    color: var(--secondary-color);
    font-size: 0.75rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-details {
    margin-top: 1.5rem;
    text-align: left;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.loading-details strong {
    color: var(--dark-color);
    display: inline-block;
    min-width: 80px;
}

.loading-details #loadingStats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.loading-details #loadingStats div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.loading-details #loadingStats i {
    color: var(--primary-color);
}

.progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
