/* ===============================
   ADMIN CONTAINER
================================ */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.admin-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ===============================
   ADMIN TABS
================================ */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

.admin-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.admin-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--text);
    background: var(--surface-2);
}

.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===============================
   ADMIN TAB CONTENT
================================ */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   ADMIN SECTION HEADER
================================ */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.admin-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filter-select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-filter-select:hover {
    border-color: var(--primary);
}

.admin-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.admin-search {
    flex: 1;
    max-width: 400px;
}

.admin-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s ease;
}

.admin-search-wrapper .admin-search-input {
    flex: 1;
    min-width: 0;
    width: auto;
}

.admin-search-input::placeholder {
    color: var(--text-muted);
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.admin-clear-search {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-clear-search:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    color: var(--primary);
}

/* ===============================
   ADMIN LIST
================================ */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.admin-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.admin-item-info {
    flex: 1;
}

.admin-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-popular {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--primary);
}

.admin-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
}

.admin-item-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-item-btn:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    color: var(--primary);
}

.admin-item-btn.delete {
    color: #dc2626;
    border-color: #dc2626;
}

.admin-item-btn.delete:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #b91c1c;
}

/* ===============================
   REPORT ITEM
================================ */
.report-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.report-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.report-item-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.report-item-badge.type {
    background: var(--primary-soft);
    color: var(--primary);
}

.report-item-badge.status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

.report-item-badge.status.resolved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.report-target-info {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.report-target-info strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.report-target-content {
    font-size: 14px;
}

.report-target-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.report-target-description {
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.report-target-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.report-target-meta em {
    color: var(--primary);
    font-style: normal;
}

.report-item-details {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.report-item-details strong {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.report-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.report-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ===============================
   USER ITEM (ROLES)
================================ */
.user-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.user-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.user-item-info {
    flex: 1;
}

.user-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.user-item-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.user-item-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.user-item-role.admin {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
}

.user-item-role.moderator {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
}

.user-item-role.user {
    background: var(--primary-soft);
    color: var(--primary);
}

.user-item-role.aluno {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.user-item-role.professor {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.user-item-actions {
    display: flex;
    gap: 8px;
}

/* ===============================
   EMPTY STATE
================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===============================
   LOADING STATE
================================ */
.loading-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===============================
   HIGHLIGHT COMMENT
================================ */
.comment-highlight {
    animation: highlightPulse 3s ease;
    border: 2px solid var(--primary) !important;
    background: var(--primary-soft) !important;
}

@keyframes highlightPulse {
    0%, 100% {
        border-color: var(--primary);
        background: var(--primary-soft);
    }
    50% {
        border-color: var(--primary-2);
        background: rgba(96, 165, 250, 0.25);
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE e Edge */
    }

    .admin-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item,
    .report-item,
    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-item-actions,
    .report-item-actions,
    .user-item-actions {
        width: 100%;
        margin-top: 12px;
    }

    .admin-item-btn {
        flex: 1;
        justify-content: center;
    }
}

