/* Mobile Responsive Styles */

@media (max-width: 768px) {
    .tabs {
        padding: 8px 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Short Form Navigation (Icons Only) */
    .tab-label {
        display: none;
    }

    .tab-button {
        padding: 10px 14px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        padding: 8px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
    }

    .dashboard-content {
        padding: 16px;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .models-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Optimization for Model Management */
@media (max-width: 768px) {
    .tab-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .btn-add-model {
        width: 100%;
    }

    .model-filter-bar {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px;
        margin-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .model-filter-bar::-webkit-scrollbar {
        height: 4px;
    }

    .model-filter-bar::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 2px;
    }

    .model-card-premium {
        padding: 20px 16px !important;
    }

    .model-card-premium .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .model-card-premium .header-text {
        width: 100%;
    }

    .model-card-premium .header-actions {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .btn-close-card {
        opacity: 0.8 !important;
        top: 4px !important;
        right: 4px !important;
    }

    /* MCP Gateway Mobile */
    .status-details {
        grid-template-columns: 1fr;
    }

    .settings-form {
        max-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .section-card h3 {
        font-size: 16px;
    }
}
