/* Global Responsive Styles */
:root {
    --primary: #0d6efd;
    --success: #198754;
    --dark: #212529;
}

body {
    background: #f4f6f9;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
    line-height: 1.5;
}

/* Responsive container spacing */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Card hover effects */
.card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Responsive tables - horizontal scroll on mobile */
.table-responsive {
    border-radius: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    margin-bottom: 0;
    min-width: 500px; /* forces scroll on small screens */
}
@media (max-width: 576px) {
    .table {
        font-size: 0.85rem;
    }
    .table td, .table th {
        padding: 0.5rem;
    }
}

/* Balance cards responsive */
.balance-card {
    transition: all 0.2s;
    border-radius: 1rem;
}
@media (max-width: 768px) {
    .balance-card h3 {
        font-size: 1.25rem;
    }
    .balance-card h5 {
        font-size: 0.9rem;
    }
}

/* Buttons full width on mobile for better tap targets */
@media (max-width: 576px) {
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    .btn-block-mobile {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Navbar dropdown for mobile */
@media (max-width: 992px) {
    .dropdown-menu {
        border: none;
        background-color: #2c3034;
    }
    .dropdown-menu .dropdown-item {
        color: #f8f9fa;
    }
    .dropdown-menu .dropdown-item:hover {
        background-color: #0d6efd;
        color: white;
    }
    .dropdown-divider {
        border-color: #495057;
    }
}

/* Banner area responsive */
.banner-area img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.85rem;
}
@media (max-width: 576px) {
    footer {
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Form inputs responsive */
input, select, textarea {
    font-size: 16px !important; /* prevents zoom on mobile */
}
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}