
/* Responsive Admin Index - FellFlow 2026 */

@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .admin-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
    }
    
    .tab-link {
        flex: 0 0 auto;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    /* Header actions */
    .container > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .container > div:first-child > div {
        width: 100%;
        justify-content: flex-start;
    }

    /* Stats Cards */
    .card-panel > div[style*="display:flex"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }
    
    .card-panel > div[style*="display:flex"] > div {
        margin: 0 !important;
        flex: none !important;
        min-width: 0 !important;
    }

    /* Filters Bar */
    .filters-bar, .filters-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }
    
    .filters-bar > *, .filters-toolbar > div {
        width: 100% !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    /* Tables to Cards */
    .admin-table, table {
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tr {
        display: block;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 10px;
        box-shadow: var(--shadow-sm);
    }
    
    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 5px !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }
    
    td:last-child {
        border-bottom: none !important;
    }
    
    /* Add labels for table data */
    td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        font-size: 0.75rem;
        text-transform: uppercase;
        margin-right: 10px;
    }
    
    /* Specific table adjustments */
    .admin-table tr td:first-child, .admin-table tr td:last-child {
        border-radius: 0 !important;
    }
    
    /* Forms */
    .card-panel form[style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .card-panel {
        padding: 20px;
    }
    
    .card-panel > div[style*="display:flex"] {
        grid-template-columns: 1fr;
    }
    
    .btn-action {
        width: 100%;
        padding: 10px;
    }
}
