/* At-Home Borrowing System - Main Stylesheet */

/* Custom Variables */
:root {
    /* MyAudiocular Light Theme Colors */
    --primary-color: #FF8C00;        /* Consistent Orange */
    --secondary-color: #8A8A8A;      /* Medium grey */
    --success-color: #FF8C00;        /* Orange for success */
    --danger-color: #D2691E;         /* Muted orange-red */
    --warning-color: #FF8C00;        /* Consistent Orange */
    --info-color: #FF8C00;           /* Consistent Orange */
    --light-color: #F8F9FA;          /* Light grey background */
    --dark-color: #333333;           /* Dark text */
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(255, 140, 0, 0.075);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FF8C00 0%, #E67E00 100%);
    min-height: 500px;
    color: white;
}

.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #6c757d;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.category-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.category-card:hover i {
    color: white !important;
}

/* Product Cards */
.product-card {
    height: 100%;
}

.card-img-top-container {
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #e9ecef;
}

/* Step Icons */
.step-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #E67E00;
    border-color: #E67E00;
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile-First Responsive Design */

/* Base Mobile Styles (320px and up) */
@media (min-width: 320px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        font-size: 1.25rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }
    
    /* Mobile-optimized forms */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Mobile card improvements */
    .card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobile hero section */
    .hero-section {
        min-height: 350px;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile product cards */
    .card-img-top-container {
        height: 180px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .product-card .card-text {
        font-size: 0.9rem;
    }
    
    /* Mobile step icons */
    .step-icon {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .step-icon i {
        font-size: 2rem !important;
    }
    
    /* Mobile tables */
    .table-responsive {
        border: none;
        font-size: 0.875rem;
    }
    
    /* Mobile pagination */
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        min-height: 300px;
        padding: 1.5rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-img-top-container {
        height: 150px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Compact navigation */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Mobile modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
}

/* Standard Mobile (576px and up) */
@media (min-width: 576px) {
    .hero-section {
        min-height: 400px;
        padding: 2.5rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-img-top-container {
        height: 200px;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
    }
}

/* Tablet Responsive Design (768px and up) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .card-img-top-container {
        height: 220px;
    }
    
    .product-card .card-title {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    /* Tablet grid improvements */
    .row.g-4 > .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Tablet navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Tablet forms */
    .form-control, .form-select {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Tablet tables */
    .table {
        font-size: 0.95rem;
    }
    
    .table th, .table td {
        padding: 0.75rem;
    }
}

/* Large Tablet/Small Desktop (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 550px;
        padding: 4rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .card-img-top-container {
        height: 250px;
    }
    
    .product-card .card-title {
        font-size: 1.25rem;
    }
    
    /* Desktop navigation improvements */
    .navbar-nav .dropdown-menu {
        position: absolute;
        background-color: white;
        border: 1px solid rgba(0,0,0,.15);
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 0.5rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        transition: background-color 0.3s ease;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: var(--light-color);
    }
    
    /* Grid improvements for desktop */
    .card-columns {
        column-count: 3;
        column-gap: 1.5rem;
    }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 600px;
        padding: 5rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
    
    .card-img-top-container {
        height: 280px;
    }
    
    .card-columns {
        column-count: 4;
    }
    
    /* Large desktop spacing */
    .container-xl {
        max-width: 1200px;
        padding: 0 15px;
    }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 650px;
    }
    
    .hero-section .display-4 {
        font-size: 4rem;
    }
    
    .card-img-top-container {
        height: 300px;
    }
}

/* Mobile-specific navigation improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 123, 255, 0.95);
        margin: 0.5rem -15px 0;
        padding: 1rem 15px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        color: white !important;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 500;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav .dropdown-item {
        color: white !important;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .product-card:hover .card-img-top {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .form-control, .form-select {
        min-height: 48px;
    }
    
    .pagination .page-link {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Remove hover effects on touch devices */
    .category-card:hover {
        transform: none;
        background-color: inherit;
        color: inherit;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .pagination,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
    }
    
    /* Uncomment to enable dark mode
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
    */
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .container-xl {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .card-columns {
        column-count: 2;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .card-columns {
        column-count: 1;
    }
    
    .table-responsive {
        border: none;
    }
    
    .table-responsive table {
        font-size: 0.875rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.25rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination .page-item {
        margin: 0.125rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .step-icon i {
        font-size: 2rem !important;
    }
}

/* Loading States and Animations */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

.spinner-border-custom {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

/* Enhanced Form Styles */
.form-floating {
    position: relative;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.8-.77-.8-.77-.8.77.8.77zm1.48-4.97L6.06 4.04l-.8.77-2.28-2.28-.8-.77zm0 0'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Enhanced Card Styles */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Button Styles */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Enhanced Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Enhanced Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table-actions {
    white-space: nowrap;
}

.table-responsive-stack {
    display: block;
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .table-responsive-stack table,
    .table-responsive-stack thead,
    .table-responsive-stack tbody,
    .table-responsive-stack th,
    .table-responsive-stack td,
    .table-responsive-stack tr {
        display: block;
    }
    
    .table-responsive-stack thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive-stack tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 0.375rem;
    }
    
    .table-responsive-stack td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .table-responsive-stack td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Enhanced Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-indicator.status-online {
    background-color: #d4edda;
    color: #155724;
}

.status-indicator.status-offline {
    background-color: #f8d7da;
    color: #721c24;
}

.status-indicator.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Enhanced Progress Bars */
.progress-stacked {
    display: flex;
    height: 1rem;
    overflow: hidden;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Enhanced Toast Notifications */
.toast-container {
    z-index: 1055;
}

.toast {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Enhanced Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Enhanced Image Styles */
.img-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-lazy.loaded {
    opacity: 1;
}

.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Accessibility */
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break-before {
        page-break-before: always;
    }
    
    .print-break-after {
        page-break-after: always;
    }
    
    .print-break-inside-avoid {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    /* Uncomment to enable dark mode
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .form-control {
        background-color: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    .table {
        color: var(--text-color);
    }
    
    .table th {
        background-color: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .modal-content {
        background-color: var(--card-bg);
        color: var(--text-color);
    }
    */
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.user-select-none {
    user-select: none;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}