 /* Custom styles for Arabic Gas Station Management System */

/* RTL Layout and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Card Enhancements */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px;
}

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

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    transition: transform 0.2s ease-in-out;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover,
.card.bg-warning:hover,
.card.bg-danger:hover {
    transform: translateY(-2px);
}

/* Table Enhancements */
.table {
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.table td {
    vertical-align: middle;
    text-align: center;
}

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

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Enhancements */
.badge {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    border-radius: 4px;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Progress Bar Enhancements */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
}

/* Fuel Type Colors */
.fuel-regular {
    background-color: #28a745;
    color: white;
}

.fuel-premium {
    background-color: #007bff;
    color: white;
}

.fuel-kerosene {
    background-color: #ffc107;
    color: #212529;
}

.fuel-white-oil {
    background-color: #6c757d;
    color: white;
}

/* Shift Status Colors */
.shift-night {
    background-color: #343a40;
    color: white;
}

.shift-morning {
    background-color: #fd7e14;
    color: white;
}

.shift-evening {
    background-color: #6610f2;
    color: white;
}

/* Currency Display */
.currency {
    font-weight: 600;
    color: #28a745;
}

.currency.negative {
    color: #dc3545;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .table-responsive {
        border-radius: 6px;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .btn,
    .navbar,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    body {
        font-size: 12px;
        background-color: white !important;
    }
    
    .table {
        font-size: 11px;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
    
    .card {
        background-color: #1e1e1e;
        border: 1px solid #333;
    }
    
    .card-header {
        background-color: #2a2a2a;
        border-bottom: 1px solid #333;
    }
    
    .table {
        background-color: #1e1e1e;
        color: #ffffff;
    }
    
    .table th {
        background-color: #2a2a2a;
        border-bottom: 2px solid #333;
    }
    
    .form-control,
    .form-select {
        background-color: #2a2a2a;
        border: 1px solid #333;
        color: #ffffff;
    }
    
    .modal-content {
        background-color: #1e1e1e;
    }
    
    .modal-header,
    .modal-footer {
        background-color: #2a2a2a;
        border-color: #333;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Utility Classes */
.text-currency {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.border-top-primary {
    border-top: 4px solid #007bff;
}

.border-top-success {
    border-top: 4px solid #28a745;
}

.border-top-warning {
    border-top: 4px solid #ffc107;
}

.border-top-danger {
    border-top: 4px solid #dc3545;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* Status Indicators */
.status-active {
    color: #28a745;
}

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

.status-pending {
    color: #ffc107;
}

.status-error {
    color: #dc3545;
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .table td,
    .table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Fixed elements for mobile */
.fixed-bottom {
    z-index: 1030;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Error states */
.has-error .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.has-success .form-control {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
/* Custom styles for Arabic Gas Station Management System */

/* RTL Layout and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Card Enhancements */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
    border-radius: 8px;
}

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

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning,
.card.bg-danger {
    transition: transform 0.2s ease-in-out;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover,
.card.bg-warning:hover,
.card.bg-danger:hover {
    transform: translateY(-2px);
}

/* Table Enhancements */
.table {
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.table td {
    vertical-align: middle;
    text-align: center;
}

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

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Badge Enhancements */
.badge {
    font-size: 0.8em;
    padding: 0.4em 0.6em;
    border-radius: 4px;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 8px 8px;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Progress Bar Enhancements */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
}

/* Fuel Type Colors */
.fuel-regular {
    background-color: #28a745;
    color: white;
}

.fuel-premium {
    background-color: #007bff;
    color: white;
}

.fuel-kerosene {
    background-color: #ffc107;
    color: #212529;
}

.fuel-white-oil {
    background-color: #6c757d;
    color: white;
}

/* Shift Status Colors */
.shift-night {
    background-color: #343a40;
    color: white;
}

.shift-morning {
    background-color: #fd7e14;
    color: white;
}

.shift-evening {
    background-color: #6610f2;
    color: white;
}

/* Currency Display */
.currency {
    font-weight: 600;
    color: #28a745;
}

.currency.negative {
    color: #dc3545;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem;
    }
    
    .table-responsive {
        border-radius: 6px;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Print Styles */
@media print {
    .btn,
    .navbar,
    .modal,
    .alert {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    body {
        font-size: 12px;
        background-color: white !important;
    }
    
    .table {
        font-size: 11px;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
    
    .card {
        background-color: #1e1e1e;
        border: 1px solid #333;
    }
    
    .card-header {
        background-color: #2a2a2a;
        border-bottom: 1px solid #333;
    }
    
    .table {
        background-color: #1e1e1e;
        color: #ffffff;
    }
    
    .table th {
        background-color: #2a2a2a;
        border-bottom: 2px solid #333;
    }
    
    .form-control,
    .form-select {
        background-color: #2a2a2a;
        border: 1px solid #333;
        color: #ffffff;
    }
    
    .modal-content {
        background-color: #1e1e1e;
    }
    
    .modal-header,
    .modal-footer {
        background-color: #2a2a2a;
        border-color: #333;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Utility Classes */
.text-currency {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.border-top-primary {
    border-top: 4px solid #007bff;
}

.border-top-success {
    border-top: 4px solid #28a745;
}

.border-top-warning {
    border-top: 4px solid #ffc107;
}

.border-top-danger {
    border-top: 4px solid #dc3545;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* Status Indicators */
.status-active {
    color: #28a745;
}

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

.status-pending {
    color: #ffc107;
}

.status-error {
    color: #dc3545;
}

/* Mobile Touch Improvements */
@media (max-width: 768px) {
    .btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .table td,
    .table th {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Fixed elements for mobile */
.fixed-bottom {
    z-index: 1030;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Error states */
.has-error .form-control {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.has-success .form-control {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}