/* Generate Link */
.review-link-card .card-body {
    padding: 1.25rem;
}

.review-link-box .form-label {
    margin-bottom: 0.5rem;
}

.review-link-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.review-link-input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
}

.review-link-input-group #btnCopyLink {
    flex: 0 0 auto;
    white-space: nowrap;
}

#btnGenerateLink {
    min-width: 160px;
}

/* History search */
.history-search-wrap {
    width: 100%;
    max-width: 360px;
}

.history-search-box {
    position: relative;
    width: 100%;
}

.history-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.history-search-input {
    padding-left: 40px !important;
    width: 100% !important;
    max-width: 100%;
}

/* History grid desktop */
.history-grid-desktop {
    width: 100%;
}

.history-kendo-grid,
.history-kendo-grid .k-grid-header,
.history-kendo-grid .k-grid-content,
.history-kendo-grid table {
    width: 100% !important;
}

.history-kendo-grid .k-grid-content {
    overflow-x: auto;
}

.history-audio {
    width: 100%;
    max-width: 260px;
    height: 36px;
}

.history-mobile-cards,
.history-mobile-empty,
.history-mobile-pager {
    display: none !important;
}

.history-mobile-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.history-mobile-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.history-mobile-row .label,
.history-mobile-audio .label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 600;
    min-width: 110px;
}

.history-mobile-row .value {
    color: #1f2d3d;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.history-mobile-audio {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-mobile-audio .history-audio {
    max-width: 100%;
}

.history-mobile-pager {
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.history-mobile-empty {
    text-align: center;
    padding: 24px 12px;
    color: #6c757d;
}

/* Admin layout responsive */
.main-content.app-content .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.main-content-title {
    word-break: break-word;
}

@media (max-width: 991.98px) {
    .history-grid-desktop {
        display: none !important;
    }

    .history-mobile-cards {
        display: block !important;
    }

    .history-mobile-empty.is-visible {
        display: block !important;
    }

    .history-mobile-pager.is-visible {
        display: flex !important;
    }

    .history-search-wrap {
        max-width: 100%;
    }

    .review-link-input-group {
        flex-direction: column;
    }

    .review-link-input-group #btnCopyLink,
    #btnGenerateLink {
        width: 100%;
    }

    .main-header .responsive-logo img.logo-1 {
        max-width: 140px;
        height: auto;
    }

    .app-content .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .main-content-title.tx-24 {
        font-size: 20px !important;
    }

    .review-link-card .card-body,
    .history-card .card-body,
    .history-card .card-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .history-mobile-row {
        flex-direction: column;
        gap: 4px;
    }

    .history-mobile-row .value {
        text-align: left;
    }

    .login-page-logo {
        width: 180px !important;
        height: auto !important;
    }

    .login .card-sigin {
        padding: 0 8px;
    }

    .public-review-page .card-sigin img {
        width: 160px !important;
        height: auto !important;
    }

    .public-review-page .login {
        padding: 1rem !important;
    }
}

/* Public review form responsive */
.public-review-wrap {
    width: 100%;
}

.public-review-wrap .btn {
    width: auto;
}

@media (max-width: 767.98px) {
    .public-review-wrap h2 {
        font-size: 24px;
    }

    .public-review-wrap h5 {
        font-size: 14px;
    }

    .public-review-wrap .btn {
        width: 100%;
    }

    .public-review-wrap .d-flex.gap-2 {
        flex-direction: column;
    }
}
