/* Custom stylesheet for RK ANBU Driving School Management System */

@import url('https://fonts.googleapis.com/css2?family=Arima+Madurai:wght@400;700;800&family=Catamaran:wght@400;600;700;800&family=Mukta+Malar:wght@400;600;700;800&family=Noto+Sans+Tamil:wght@400;500;600;700;800&family=Pavanam&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-primary: #065f46;
    --brand-secondary: #047857;
    --brand-accent: #10b981;
    --font-tamil: 'Noto Sans Tamil', sans-serif;
}

body {
    font-family: 'Plus Jakarta Sans', var(--font-tamil), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
}

/* Pre-loaded Tamil Font Classes */
.font-tamil, [data-tamil] {
    font-family: var(--font-tamil) !important;
}

.font-tamil-noto { font-family: 'Noto Sans Tamil', sans-serif !important; }
.font-tamil-mukta { font-family: 'Mukta Malar', sans-serif !important; }
.font-tamil-catamaran { font-family: 'Catamaran', sans-serif !important; }
.font-tamil-arima { font-family: 'Arima Madurai', cursive, sans-serif !important; }
.font-tamil-pavanam { font-family: 'Pavanam', sans-serif !important; }

/* Badge styles */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.badge-new { background-color: #dbeafe; color: #1e40af; }
.badge-pending { background-color: #fef3c7; color: #92400e; }
.badge-ready { background-color: #e0e7ff; color: #3730a3; }
.badge-submitted { background-color: #f3e8ff; color: #6b21a8; }
.badge-booked { background-color: #cffafe; color: #155e75; }
.badge-completed, .badge-approved, .badge-delivered { background-color: #d1fae5; color: #065f46; }
.badge-rejected, .badge-cancelled { background-color: #fee2e2; color: #991b1b; }
.badge-hold { background-color: #f1f5f9; color: #475569; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tab active style */
.nav-tab.active {
    background-color: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #059669;
    font-weight: 700;
}

/* Modal Backdrop Animation */
.modal-backdrop {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    transition: opacity 0.2s ease;
}

/* Mobile Frame view */
.mobile-view-container {
    max-width: 440px;
    margin: 0 auto;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 10px solid #1e293b;
    overflow: hidden;
    background-color: #ffffff;
}

@media print {
    .no-print { display: none !important; }
}

/* ==========================================================================
   PWA & NATIVE MOBILE APP VIEW STYLES
   ========================================================================== */
.mobile-app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 40;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-app-bottom-nav button,
.mobile-app-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    transition: color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    border: none;
    background: none;
    padding: 4px 0;
}

.mobile-app-bottom-nav button i,
.mobile-app-bottom-nav a i {
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-app-bottom-nav button.active-nav,
.mobile-app-bottom-nav a.active-nav {
    color: #065f46;
}

.mobile-app-bottom-nav button.active-nav i,
.mobile-app-bottom-nav a.active-nav i {
    color: #059669;
    transform: scale(1.15);
}

/* Standalone / PWA / Mobile Screen activation */
@media (max-width: 768px), (display-mode: standalone) {
    .mobile-app-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 74px !important;
    }
}

body.force-mobile-view .mobile-app-bottom-nav {
    display: flex !important;
}

body.force-mobile-view {
    padding-bottom: 74px !important;
}

body.pwa-standalone header {
    padding-top: env(safe-area-inset-top, 0px);
}

/* Touch Friendly Mobile Adjustments */
@media (max-width: 640px) {
    input, select, textarea, button {
        font-size: 14px !important;
    }
}

