/* ئاساسىي ئۇسلۇبلار / Basic Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ئۇيغۇرچە RTL قوللاش / Uyghur RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .dropdown-menu {
    right: 0;
    left: auto;
}

.rtl .text-end {
    text-align: left !important;
}

.rtl .text-start {
    text-align: right !important;
}

/* كارتا ئۇسلۇبلىرى / Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* جەدۋەل ئۇسلۇبلىرى / Table Styles */
.table {
    font-size: 0.9rem;
}

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

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

/* توپچا ئۇسلۇبلىرى / Button Styles */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* مەلۇمات كارتىسى / Info Cards */
.card.bg-primary .card-body h6,
.card.bg-success .card-body h6,
.card.bg-info .card-body h6,
.card.bg-warning .card-body h6 {
    color: rgba(255, 255, 255, 0.8);
}

.card.bg-primary .card-body h3,
.card.bg-success .card-body h3,
.card.bg-info .card-body h3,
.card.bg-warning .card-body h3 {
    color: white;
    font-weight: 700;
}

/* خاتەلىك ئۇچۇرى / Alert Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* navigation ئۇسلۇبى / Navigation Styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s ease-in-out;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

/* تالون ئۇسلۇبى / Receipt Styles */
.receipt-card {
    max-width: 800px;
    margin: 0 auto;
}

.receipt-card .table {
    margin-bottom: 0;
}

/* ئىزدەش نەتىجىسى / Search Results */
.dropdown-menu.show {
    display: block;
    max-height: 300px;
    overflow-y: auto;
}

.product-item:hover,
.customer-item:hover {
    background-color: #f8f9fa;
}

/* loading ئېفېكتى / Loading Effect */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* responsive ئۇسلۇب / Responsive Styles */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn-group-sm > .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
}

/* Print ئۇسلۇبى / Print Styles */
@media print {
    .no-print,
    .btn,
    .navbar,
    .card-header,
    footer,
    .alert {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th,
    .table td {
        border: 1px solid #000 !important;
        padding: 0.25rem !important;
    }
}

/* ئالاھىدە ياردەمچى كلاسسلار / Custom Helper Classes */
.text-primary-custom {
    color: #0d6efd !important;
}

.bg-primary-custom {
    background-color: #0d6efd !important;
}

.border-primary-custom {
    border-color: #0d6efd !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fs-7 {
    font-size: 0.875rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

/* كۆڭۈلدىكى كۆك رەڭ پالىتىرىسى / Custom Blue Color Palette */
:root {
    --bs-primary: #1e40af;
    --bs-primary-rgb: 30, 64, 175;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* ياردەمچى ئۇسلۇبلار / Utility Styles */
.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

.overflow-hidden {
    overflow: hidden;
}

.text-wrap {
    white-space: normal !important;
}

.text-nowrap {
    white-space: nowrap !important;
}