/* ========================================
   Kutaş beton - CUSTOM STYLES
   Bootstrap 5 Enhancement - Kurumsal Tasarım
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-bg: #1a252f;
    --border-color: #dee2e6;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.125);
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Responsive Foundation */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

.responsive-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.sidebar-open {
    overflow: hidden;
}

/* Mobile visibility helpers */
.mobile-only {
    display: none;
}

.mobile-hide {
    display: block;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    letter-spacing: 0.5px;
}

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

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Sidebar Styles */
.sidebar {
    background: #fff;
    min-height: calc(100vh - 56px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 56px;
}

.sidebar .nav-link {
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.sidebar .nav-link.active {
    font-weight: 600;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header h5, .card-header h6 {
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before { background: var(--accent-color); }
.stat-card.success::before { background: var(--success-color); }
.stat-card.warning::before { background: var(--warning-color); }
.stat-card.danger::before { background: var(--danger-color); }
.stat-card.info::before { background: var(--info-color); }

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon { background: rgba(52, 152, 219, 0.1); color: var(--accent-color); }
.stat-card.success .stat-icon { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.stat-card.warning .stat-icon { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.stat-card.danger .stat-icon { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }
.stat-card.info .stat-icon { background: rgba(23, 162, 184, 0.1); color: var(--info-color); }

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

.stat-card .stat-content h3,
.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.stat-card .stat-content p,
.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.25rem 0 0 0;
}

/* Dashboard Card Stat Cards - Override for card wrapper */
.card.stat-card {
    display: block;
    padding: 0;
}

.card.stat-card .card-body {
    padding: 1rem 1.25rem;
}

.card.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    border-color: var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.form-label .text-danger {
    margin-left: 0;
    font-weight: 700;
}

.form-label + .btn,
.d-flex.form-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-label .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

.form-label .btn i {
    margin-right: 0.25rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.input-group-text {
    background-color: var(--light-bg);
    border-color: var(--border-color);
}

/* Floating Labels */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.875rem;
}

.form-floating > label {
    padding: 1rem 0.875rem;
}

/* Button Enhancements */
.btn {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, var(--accent-color) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #219a52 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d68910 100%);
    color: #fff;
}

.btn-warning:hover {
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: #fff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

/* Table Enhancements */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.875rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-color: var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.table-responsive {
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

/* DataTables Styling */
.dataTables_wrapper {
    padding: 1rem 0;
    overflow: visible;
}

.dataTables_wrapper .row,
.dataTables_wrapper [class^="col-"],
.dataTables_wrapper [class*=" col-"] {
    overflow: visible;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_filter {
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_filter label {
    justify-content: flex-end;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-width: 70px;
    appearance: auto;
    background-color: #fff;
    background-image: none;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    min-width: 200px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--border-radius-sm) !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate .pagination {
    white-space: nowrap;
    flex-wrap: nowrap;
}

.dataTables_wrapper .dataTables_paginate {
    overflow: visible;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--light-bg) !important;
    border-color: var(--border-color) !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--text-secondary);
    padding-top: 1rem;
}

.dt-page-hidden {
    display: none !important;
}

/* Badge Enhancements */
.badge {
    padding: 0.375rem 0.625rem;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.25px;
    border-radius: var(--border-radius-sm);
}

.badge-soft-primary {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--accent-color);
}

.badge-soft-success {
    background-color: rgba(39, 174, 96, 0.15);
    color: var(--success-color);
}

.badge-soft-warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
}

.badge-soft-danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1rem 1.25rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: var(--accent-color);
    color: #0c5460;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
}

/* Pagination */
.pagination {
    margin: 0;
}

.page-link {
    border: none;
    border-radius: var(--border-radius-sm) !important;
    color: var(--text-primary);
    padding: 0.5rem 0.875rem;
    margin: 0 2px;
    font-weight: 500;
}

.page-link:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    color: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* Product Suggestions Autocomplete */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.suggestions-container.show {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.suggestion-item .badge {
    font-size: 0.6875rem;
}

/* Quick Add Modal */
.quick-add-btn {
    white-space: nowrap;
}

/* Number Inputs */
.number-input {
    text-align: right;
}

/* VAT Calculation Checkbox */
.vat-calc-container {
    background-color: var(--light-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
}

.vat-calc-container .form-check-label {
    font-weight: 500;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Content Wrapper */
.content-wrapper {
    padding: 1.5rem;
    min-height: calc(100vh - 56px);
    max-width: 100%;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1045;
    padding: 0.35rem 0.25rem;
}

.mobile-bottom-nav .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.mobile-bottom-nav .nav-item {
    flex: 1 1 0;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.2rem;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.mobile-bottom-nav .nav-link.active i {
    color: var(--accent-color);
}

.mobile-bottom-nav .nav-link:active {
    transform: scale(0.98);
}

.mobile-more-list .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

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

.empty-state h5 {
    color: var(--text-secondary);
}

/* Receipt Styles */
.receipt-preview {
    background: #fff;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.receipt-details {
    margin-bottom: 1.5rem;
}

.receipt-details .row {
    margin-bottom: 0.5rem;
}

.receipt-details .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.receipt-total {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    text-align: right;
}

.receipt-total .total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Report Styles */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-item .label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-item.receivable .value { color: var(--success-color); }
.summary-item.payable .value { color: var(--danger-color); }

/* Timeline for Logs */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid #fff;
}

.timeline-item.create::before { background: var(--success-color); }
.timeline-item.update::before { background: var(--warning-color); }
.timeline-item.delete::before { background: var(--danger-color); }

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.login-card .form-control {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
}

.login-card .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.login-card .input-group .input-group-text {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.login-card .input-group .form-control {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    border-left: none;
}

.login-card .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    color: var(--accent-color);
}

.login-logo h2 {
    margin-top: 0.5rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 56px;
        width: 280px;
        height: calc(100vh - 56px);
        transition: var(--transition-normal);
        z-index: 1020;
        overflow-y: auto;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1015;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-content h3,
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 0.75rem;
    }
    
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .dt-mobile-controls .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .btn,
    .nav-link,
    .dropdown-item,
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .sidebar .nav-link {
        min-height: 44px;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .mobile-hide {
        display: none !important;
    }

    body {
        padding-bottom: 72px;
    }

    table.table-card thead {
        display: none;
    }

    table.table-card tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: 0.5rem 0.75rem;
        background: #fff;
    }

    table.table-card tbody td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.5rem 0;
        border: none;
        align-items: flex-start;
    }

    table.table-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        min-width: 40%;
        text-align: left;
    }

    table.table-card tbody td.text-end,
    table.table-card tbody td.text-center {
        text-align: left !important;
    }

    table.table-card tbody td.dt-actions {
        padding-top: 0.75rem;
    }

    table.table-card tbody td.dt-actions::before {
        content: "İşlemler";
    }

    table.table-card tbody td.dt-actions .btn,
    table.table-card tbody td.dt-actions .dropdown-toggle {
        width: 100%;
    }

    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    form .row > [class^="col-"],
    form .row > [class*=" col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    form .input-group,
    form .form-control,
    form .form-select {
        width: 100%;
    }
/* 
    form .btn {
        width: 100%;
    } */

    .dt-mobile-controls {
        margin-bottom: 0.75rem;
        flex-wrap: nowrap;
    }

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

    .dt-mobile-controls .dataTables_filter {
        justify-content: flex-start;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .dt-mobile-controls .dataTables_filter label {
        width: auto;
        justify-content: flex-start;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dt-mobile-controls .dataTables_filter input {
        min-width: 160px;
        width: auto;
    }

    .dt-mobile-filter,
    .dt-mobile-paginate {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .dt-mobile-paginate {
        justify-content: flex-end;
        overflow-x: auto;
    }

    .dt-mobile-controls .dataTables_paginate {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    .dt-mobile-controls .dataTables_paginate .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.25rem;
        margin-bottom: 0;
        width: max-content;
    }

    .dt-mobile-controls .dataTables_paginate .pagination::-webkit-scrollbar {
        height: 4px;
    }

    .dt-mobile-controls .dataTables_paginate .paginate_button {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dataTables_wrapper .page-link {
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .receipt-preview {
        border: none;
        padding: 0;
    }
}

/* Utility Classes */
.cursor-pointer { cursor: pointer; }
.fw-medium { font-weight: 500; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quick Actions FAB */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
}

.fab-container:hover .fab-menu,
.fab-container.active .fab-menu {
    display: block;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.2s ease-out forwards;
}

.fab-menu-item:nth-child(1) { animation-delay: 0.05s; }
.fab-menu-item:nth-child(2) { animation-delay: 0.1s; }
.fab-menu-item:nth-child(3) { animation-delay: 0.15s; }

.fab-menu-item span {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    margin-right: 0.75rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

.fab-menu-item .btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
}

/* Touch Friendly */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 48px;
    }
    
    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}
