/* /usr/local/lsws/alikhwa/html/css/custom.css */

/* Default font for everything else */
[lang="ml"] {
    font-family: 'Anek Malayalam', sans-serif;
}

[lang="ar"] {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

[lang="ur"] {
    font-family: 'Gulzar', serif;
}

[lang="ta"] {
    font-family: 'Anek Tamil', sans-serif;
}

/* Base adjustments */
:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --app-bottom-nav-height: 4rem;
}

body {
    padding-bottom: var(--app-bottom-nav-height);
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* PWA display enhancements */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom));
    }
}

/* Card enhancements */
.card {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

/* Bottom navigation */
.navbar.fixed-bottom {
    height: var(--app-bottom-nav-height);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, .05);
}

.navbar.fixed-bottom .btn-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar.fixed-bottom .btn-link:hover,
.navbar.fixed-bottom .btn-link.active {
    color: var(--bs-primary);
}

/* Quick stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

/* List group enhancements */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.2s ease;
}

.list-group-item:first-child {
    border-top: none;
}

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

.list-group-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.03);
}

/* Category icons */
.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Search container */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-left: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, .1);
}

.search-container .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}

/* Toast enhancements */
.toast {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

/* Loading states */
.loading-skeleton {
    animation: loading-skeleton 1s infinite alternate;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes loading-skeleton {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* RTL Support */
[dir="rtl"] .list-group-item {
    text-align: right;
}

[dir="rtl"] .bi {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 0.9rem;
    }

    .category-icon {
        width: 2rem;
        height: 2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}