#wrapper {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.content-wrapper {
    background-color: #f9fafc;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: "Segoe UI", Roboto, sans-serif;
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
    padding: 20px;
}

.upgrade-btn {
    min-width: 120px;
}

.feature-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    height: 100%;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box input[type="checkbox"] {
    margin: 0;
}

.feature-box:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

#searchResultsContainer {
    max-height: 400px;
    overflow-y: auto;
}

.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: #f1f9ff;
}

.select-user-btn {
    min-width: 80px;
}

#viewDetailModal .modal-content {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

#viewDetailModal .modal-header {
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    text-align: center;
    padding: 1.2rem 1.5rem 1rem 1.5rem;
    border-bottom: none;
}

#viewDetailModal .modal-title {
    width: 100%;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}

#viewDetailModal .user-info {
    background: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 1px 6px rgba(25, 118, 210, 0.07);
    padding: 1.1rem 1.2rem 0.7rem 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

#viewDetailModal .user-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e3eafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1976d2;
    font-weight: 600;
}

#viewDetailModal .user-meta {
    flex: 1;
}

#viewDetailModal .user-meta .user-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
}

#viewDetailModal .user-meta .user-email {
    font-size: 0.98rem;
    color: #555;
}

#viewDetailModal .survey-table {
    background: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 1px 6px rgba(25, 118, 210, 0.07);
    margin-bottom: 0.5rem;
}

#viewDetailModal th,
#viewDetailModal td {
    vertical-align: middle !important;
    padding: 0.7rem 0.5rem !important;
    font-size: 1.05rem;
}

#viewDetailModal th {
    background: #f0f4fa;
    color: #1976d2;
    border: none;
    font-weight: 600;
}

#viewDetailModal .badge {
    font-size: 1em;
    padding: 0.45em 0.9em;
    border-radius: 0.7em;
    background: #1976d2;
    color: #fff;
    margin-bottom: 2px;
    margin-right: 2px;
}

#viewDetailModal .text-muted {
    color: #888 !important;
}



.header-section {
    background: linear-gradient(90deg, #0052cc, #0066ff);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.main-section {
    padding: 24px;
}

.section-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin: 32px 0 16px 0;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: #0066ff;
    border-radius: 2px;
}

.table-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.styled-table thead {
    background-color: #f1f3f5;
    text-transform: uppercase;
    font-weight: 600;
    color: #444;
}

.styled-table th, .styled-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.styled-table tbody tr:hover {
    background-color: #f6f8ff;
    transition: 0.2s ease;
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hành động */
.table-wrapper .btn-action {
    border: none;
    background: transparent;
    color: #0052cc;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.table-wrapper .btn-action:hover {
    color: #003d99;
    text-decoration: underline;
}

.pagination-wrapper {
    text-align: right;
    padding: 12px 16px;
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .styled-table th, .styled-table td {
        font-size: 0.85rem;
        padding: 10px;
    }
}
