/* Responsive Layout Adaptations (Mobile First & Multi-Screen Support) */

@media (min-width: 768px) {
    .hamburger-btn,
    .close-drawer-btn {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 40;
        width: 280px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .close-drawer-btn {
        display: inline-flex;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hamburger-btn {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }

    .content-container {
        width: min(100%, calc(100vw - 32px));
        margin-top: 16px;
    }

    .app-bar {
        padding: 0 16px;
        height: 64px;
    }

    .wallet-badge {
        display: none;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 12px;
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-muted);
        font-size: 0.78rem;
        text-transform: uppercase;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.18rem;
    }

    .form-row-between {
        flex-direction: column;
        align-items: flex-start;
    }
}