
.truso-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.truso-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.8);
}

.truso-popup-container .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.truso-popup-container .leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.truso-popup {
    padding: 12px 15px;
}

.truso-popup__ten {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2d6ca2;
}

.truso-popup__diachi,
.truso-popup__lienhe {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
}

.truso-popup__lienhe span {
    font-weight: 600;
    color: #3498db;
}

.truso-popup__btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.truso-popup__btn:hover {
    background: #2980b9;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    user-select: none;
    -webkit-user-select: none;
}
.admin-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
}

.admin-filters .form-input,
.admin-filters .form-select {
    min-width: 180px;
    max-width: 350px;
    padding-right: 35px; 
}

/* Input tìm kiếm Gmail cần rộng hơn */
#filterUserEmail {
    min-width: 350px;
    max-width: 500px;
    flex: 1;
}

/* Input với nút clear */
.input-with-clear {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.input-with-clear .form-input {
    padding-right: 35px;
}

.btn-clear-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-clear-input:hover {
    background: #c0392b;
    color: white;
}

.input-with-clear .form-input:not(:placeholder-shown) + .btn-clear-input {
    display: flex;
}

.admin-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(70vh + 80px);
    background: white;
    border-radius: var(--bo-goc-md);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}
.role-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.role-badge--0 {
    background: #95a5a6;
    color: white;
}

.role-badge--1 {
    background: #3498db;
    color: white;
}

.role-badge--2 {
    background: #e74c3c;
    color: white;
}

.role-badge--3 {
    background: #9b59b6;
    color: white;
}
.status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge--pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge--processing {
    background: #cce5ff;
    color: #004085;
}

.status-badge--resolved {
    background: #d4edda;
    color: #155724;
}
.btn--action {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--action-view {
    background: #e9ecef;
    color: #495057;
}

.btn--action-view:hover {
    background: #dee2e6;
}

.btn--action-delete {
    background: #f8d7da;
    color: #721c24;
}

.btn--action-delete:hover {
    background: #f5c6cb;
}
.status-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
    cursor: pointer;
}
.admin-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: calc(70vh + 80px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.admin-post-card {
    background: white;
    border-radius: var(--bo-goc-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.admin-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.admin-post-card__image {
    width: 100%;
    height: 150px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    position: relative;
}

.admin-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-post-card__status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-post-card__status--approved {
    background: #27ae60;
    color: white;
}

.admin-post-card__status--pending {
    background: #f39c12;
    color: white;
}

.admin-post-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.admin-post-card__action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.admin-post-card__action--approve {
    background: #27ae60;
    color: white;
}

.admin-post-card__action--delete {
    background: #e74c3c;
    color: white;
}

.admin-post-card__body {
    padding: 12px;
}

.admin-post-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-post-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.admin-post-card__author {
    color: var(--mau-chinh);
}
.admin-media-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--bo-goc-md);
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.admin-media-form h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.admin-media-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .admin-media-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-media-form .form-group[style*="grid-column"] {
        grid-column: auto !important;
    }
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 1rem;
}

.admin-media-grid--video {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.admin-media-item {
    position: relative;
    border-radius: var(--bo-goc-md);
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.admin-media-item:hover img {
    transform: scale(1.05);
}

.admin-media-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-media-item:hover .admin-media-item__overlay {
    opacity: 1;
}

.admin-media-item__title {
    color: white;
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-media-item__delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

.admin-media-item__delete:hover {
    transform: scale(1.1);
    background: #c0392b;
}

.admin-media-item:hover .admin-media-item__delete {
    opacity: 1;
}
.admin-media-item--video {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.admin-media-item__video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 10px;
    padding: 15px;
    text-align: center;
}

.admin-media-item__video-wrapper i {
    color: rgba(255,255,255,0.8);
    transition: transform 0.2s, color 0.2s;
}

.admin-media-item--video:hover .admin-media-item__video-wrapper i {
    transform: scale(1.2);
    color: #e74c3c;
}

.admin-media-item__video-wrapper span {
    font-size: 0.85rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.admin-media-video {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: var(--bo-goc-sm);
    margin-bottom: 8px;
}

.admin-media-video i {
    color: #e74c3c;
}

.admin-media-video span {
    flex: 1;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.media-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.media-error:hover {
    background: #e5e5e5;
    color: #666;
}

.media-error i {
    font-size: 2rem;
    opacity: 0.5;
}

.media-error span {
    font-size: 0.75rem;
}
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .admin-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-filters .form-input,
    .admin-filters .form-select {
        max-width: 100%;
        width: 100%;
    }
    
    .admin-toolbar {
        flex-direction: column;
    }
    
    .admin-toolbar .btn {
        width: 100%;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
    
    .admin-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .admin-post-card__image {
        height: 120px;
    }
}
.role-select {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.role-select:focus {
    outline: none;
    border-color: var(--mau-chinh);
}

.role-select:hover {
    border-color: #bbb;
}
.admin-actions-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.btn--action {
    padding: 4px 10px;
    font-size: 0.75rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn--action:hover {
    background: #f5f5f5;
}

.btn--action-primary {
    background: var(--mau-chinh);
    color: white;
    border-color: var(--mau-chinh);
}

.btn--action-primary:hover {
    background: #1a5276;
    border-color: #1a5276;
}

.btn--action-delete {
    color: #dc3545;
    border-color: #dc3545;
}

.btn--action-delete:hover {
    background: #dc3545;
    color: white;
}
.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.permission-checkbox:hover {
    background: #e9ecef;
}

.permission-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.permission-checkbox span {
    flex: 1;
    font-size: 0.9rem;
}
.user-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-detail-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.user-detail-label {
    min-width: 100px;
    color: #666;
    font-weight: 500;
}

.user-detail-label i {
    margin-right: 6px;
    color: var(--mau-chinh);
}

.user-detail-value {
    flex: 1;
    color: #333;
}
@media (max-width: 768px) {
    .admin-actions-group {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn--action {
        width: 100%;
        text-align: center;
    }
}

/* Activity Logs */
.activity-logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(70vh + 80px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-log-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--mau-nen-card);
    border-radius: 12px;
    border: 1px solid var(--mau-vien);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-log-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-log-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.activity-log-content {
    flex: 1;
    min-width: 0;
}

.activity-log-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    user-select: none;
    -webkit-user-select: none;
}

.activity-log-actor {
    font-weight: 600;
    color: var(--mau-chu-chinh);
    user-select: none;
    -webkit-user-select: none;
}

.activity-log-action {
    font-size: 0.85rem;
    color: var(--mau-chu-phu);
    background: var(--mau-nen-phu);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
}

.activity-log-gmail {
    font-size: 0.8rem;
    color: #3498db;
    font-weight: 400;
    user-select: text;
    -webkit-user-select: text;
}

.activity-log-gmail--clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.activity-log-gmail--clickable:hover {
    color: #2980b9;
    text-decoration-style: solid;
}

.activity-log-target {
    font-size: 0.85rem;
    color: var(--mau-chu-phu);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-log-target i {
    font-size: 0.7rem;
    color: #95a5a6;
}

.activity-log-detail {
    color: var(--mau-chu-chinh);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.activity-log-time {
    font-size: 0.8rem;
    color: var(--mau-chu-phu);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 600px) {
    .activity-log-item {
        padding: 0.75rem;
    }
    
    .activity-log-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Notification Badge */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.4);
    animation: badge-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

/* Menu Thông báo với badge */
#menuThongBao .nav__sublink {
    gap: 8px;
}
