/* ============================================
   FinFlow LMS - Responsive Stylesheet
   ============================================ */

/* ----- Tablet (max-width: 992px) ----- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1045;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .search-box input {
        width: 200px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 3.5rem 0 5rem;
    }

    .hero-float-card {
        margin-top: 2rem;
    }

    .trust-bar .stat-number {
        font-size: 1.6rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .step-card .step-connector {
        display: none;
    }

    .counter-box .counter-number {
        font-size: 2rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar .row > div {
        margin-bottom: 0.5rem;
    }

    .notification-panel {
        width: 300px;
    }
}

/* ----- Mobile (max-width: 768px) ----- */
@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }

    .top-navbar {
        padding: 0 1rem;
    }

    .search-box {
        display: none;
    }

    .search-box-mobile {
        display: block;
        padding: 0.75rem 1rem;
        background: var(--ff-navbar-bg);
        border-bottom: 1px solid #e2e8f0;
    }

    .user-dropdown .user-info {
        display: none;
    }

    .stats-card {
        padding: 1rem;
    }

    .stats-card .stats-number {
        font-size: 1.375rem;
    }

    .stats-card .stats-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .dashboard-card .card-value {
        font-size: 1.375rem;
    }

    .hero-section h1 {
        font-size: 1.85rem;
    }

    .hero-section p.hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 3rem 0 4.5rem;
        min-height: auto;
    }

    .trust-bar {
        margin-top: -2rem;
    }

    .trust-bar .stat-item:not(:last-child)::after {
        display: none;
    }

    .trust-bar .stat-number {
        font-size: 1.4rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .emi-calc-card {
        padding: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .loan-card {
        padding: 1.5rem;
    }

    .table-responsive {
        font-size: 0.8125rem;
    }

    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-group-mobile .btn {
        width: 100%;
    }

    .notification-panel {
        width: 100vw;
        max-width: 100vw;
        position: fixed;
        left: 0;
        right: 0;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .counter-box {
        padding: 1rem 0.5rem;
    }

    .counter-box .counter-number {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0 1rem;
    }

    .quick-action-card {
        padding: 1rem;
    }

    .page-header h4 {
        font-size: 1.125rem;
    }
}

/* ----- Small Mobile (max-width: 576px) ----- */
@media (max-width: 576px) {
    .content-area {
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.4rem 0.875rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
    }

    .hero-section {
        padding: 2.5rem 0 4rem;
    }

    .hero-section .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .btn-hero-primary,
    .hero-section .btn-hero-outline {
        text-align: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .trust-bar .trust-inner {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .emi-result-card .emi-big {
        font-size: 1.75rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }

    .filter-bar {
        padding: 0.75rem;
    }

    .action-btns {
        display: flex;
        gap: 0.25rem;
    }
}

/* ----- Print Styles ----- */
@media print {
    .sidebar,
    .top-navbar,
    .sidebar-overlay,
    .btn,
    .filter-bar,
    .page-header .btn,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-area {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        font-size: 12px;
        color: #000;
        background: #fff;
    }

    .table thead th {
        background: #f0f0f0 !important;
    }

    a { color: #000; text-decoration: none; }
}
