/* ====================================
   Responsive Media Queries
   ==================================== */

/* Large Screens */
@media (min-width: 1200px) {
    .wrapper {
        max-width: 1080px;
    }
}

@media (max-width: 1199px) {
    .wrapper {
        max-width: 960px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .wrapper {
        max-width: 720px;
        width: 95%;
    }

    .title {
        font-size: 26px;
    }

    .two-col {
        flex-direction: column;
        gap: 12px;
    }

    .two-col textarea {
        height: 180px;
        min-height: 180px;
    }

    .progress-summary-row {
        flex-direction: column;
        align-items: center;
    }

    .account-progress-item {
        max-width: 100%;
        width: 100%;
    }

    .result-table td:nth-child(5) {
        max-width: 150px;
    }
}

/* Mobile - Large */
@media (max-width: 767px) {
    .wrapper {
        width: 98%;
        padding: 0 8px;
        margin: 10px auto;
    }

    .title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .tabs {
        gap: 5px;
    }

    .tab {
        padding: 5px 10px;
        font-size: 12px;
    }

    .top-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn,
    .qr-refresh-btn-content {
        padding: 7px 12px;
        font-size: 12px;
        height: 36px;
    }

    .account-card {
        padding: 15px;
    }

    .two-col {
        flex-direction: column;
        gap: 15px;
    }

    .numbers-container,
    .messages-container {
        width: 100%;
    }

    .two-col textarea {
        height: 150px;
        min-height: 150px;
        font-size: 12px;
        width: 100%;
    }

    .message-tabs-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .progress-summary-section,
    .global-section {
        padding: 15px;
    }

    .progress-summary-section h3,
    .global-section h3 {
        font-size: 16px;
    }

    .progress-account-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .result-table {
        font-size: 11px;
    }

    .result-table th,
    .result-table td {
        padding: 6px 8px;
    }

    .result-table th:nth-child(5),
    .result-table td:nth-child(5) {
        display: none;
    }

    .result-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-input-row {
        flex-direction: column;
        gap: 10px;
    }

    .qr-inline-img {
        width: 220px;
        height: 220px;
    }

    .global-aggregate-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .utility-card {
        padding: 8px 10px;
        gap: 8px;
    }
}

/* Mobile - Small */
@media (max-width: 575px) {
    .wrapper {
        width: 100%;
        padding: 0 5px;
        margin: 5px auto;
    }

    .title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .tabs {
        justify-content: center;
        gap: 4px;
    }

    .tab {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 6px;
    }

    .top-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .top-actions .btn {
        width: auto;
    }

    .btn,
    .qr-refresh-btn-content {
        padding: 8px 10px;
        font-size: 11px;
        height: 34px;
    }

    .btn.blast-all {
        width: 100%;
        max-width: 100%;
    }

    .account-card {
        padding: 12px;
        border-radius: 12px;
    }

    .two-col {
        flex-direction: column;
        gap: 12px;
    }

    .two-col textarea {
        height: 140px;
        min-height: 140px;
        font-size: 11px;
    }

    .progress-account-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .result-table {
        font-size: 10px;
    }

    .result-table th,
    .result-table td {
        padding: 5px 6px;
    }

    .qr-inline-img,
    #qrPopupImg {
        width: 200px;
        height: 200px;
    }

    .pairing-code-text {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .global-aggregate-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ag-stat-item {
        padding: 10px 8px;
    }

    .ag-value {
        font-size: 22px;
    }

    .utility-card {
        width: 100%;
        border-radius: 12px;
        justify-content: space-around;
        gap: 6px;
    }

    .btn.utility-btn {
        flex: 1;
        min-width: 90px;
        justify-content: center;
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
}

/* Tablet Responsive (768px breakpoint - already handled in 767px) */
@media (max-width: 768px) {
    .progress-summary-row {
        flex-direction: column;
        align-items: center;
    }

    .account-progress-item {
        max-width: 100%;
        width: 100%;
    }
}