/* Admin Account Standing Page Styles */

.admin-standing-page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-standing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.admin-standing-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stats Cards */
.admin-standing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card-value.warning {
    color: #eab308;
}

.stat-card-value.danger {
    color: #ef4444;
}

/* Tabs */
.admin-standing-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.admin-standing-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
}

.admin-standing-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.admin-standing-tab.active {
    background: var(--accent-primary);
    color: white;
}

/* Search Section */
.admin-standing-search {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-standing-search h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-input-group input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-input-group button {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.search-input-group button:hover {
    background: var(--accent-hover);
}

/* Search Results */
.search-results {
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.search-result-item:hover {
    border-color: var(--accent-primary);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-username {
    font-weight: 500;
    color: var(--text-primary);
}

.search-result-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.search-result-standing {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.search-result-standing.all-good {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.search-result-standing.limited {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.search-result-standing.very-limited {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.search-result-standing.suspended {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* User Detail Panel */
.user-detail-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.user-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-detail-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-detail-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.user-detail-standing {
    text-align: right;
}

.user-detail-standing .standing-badge {
    margin-bottom: 4px;
}

.user-detail-points {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Admin Actions */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.admin-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.admin-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.admin-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.admin-action-btn.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.admin-action-btn.success:hover {
    background: rgba(34, 197, 94, 0.2);
}

/* Violations Table */
.violations-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.violations-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.violations-table-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.violations-table {
    width: 100%;
    border-collapse: collapse;
}

.violations-table th,
.violations-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.violations-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.violations-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.violations-table tr:last-child td {
    border-bottom: none;
}

.violations-table .dismissed {
    opacity: 0.5;
    text-decoration: line-through;
}

.violation-type-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.violation-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-dismiss {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.btn-dismiss:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Appeals Section */
.appeals-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.appeals-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.appeal-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.appeal-card:last-child {
    margin-bottom: 0;
}

.appeal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.appeal-user {
    font-weight: 500;
    color: var(--text-primary);
}

.appeal-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.appeal-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

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

.btn-approve {
    background: rgba(34, 197, 94, 0.15);
    border: none;
    color: #22c55e;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.btn-approve:hover {
    background: rgba(34, 197, 94, 0.25);
}

.btn-reject {
    background: rgba(239, 68, 68, 0.15);
    border: none;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Modals */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 1.5rem;
}

.admin-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.admin-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-modal-form > div {
    display: flex;
    flex-direction: column;
}

.admin-modal-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.admin-modal-form select,
.admin-modal-form input,
.admin-modal-form textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.admin-modal-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.admin-modal-form select:focus,
.admin-modal-form input:focus,
.admin-modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.admin-modal-form textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1rem;
}

/* Violation Actions Cell */
.violation-actions-cell {
    display: flex;
    gap: 6px;
}

.btn-view-details,
.violation-actions-cell .btn-dismiss {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-view-details:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.violation-actions-cell .btn-dismiss:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.btn-view-details .material-icons-outlined,
.violation-actions-cell .btn-dismiss .material-icons-outlined {
    font-size: 18px;
}

/* Violation Details Modal */
.violation-details-modal {
    width: 360px;
    max-width: 90vw;
    padding: 0;
    overflow: hidden;
}

.vd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.vd-type {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.vd-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.vd-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.vd-status.dismissed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.vd-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 16px;
}

.vd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.vd-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vd-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vd-val {
    font-size: 13px;
    color: var(--text-primary);
}

.vd-section {
    margin-bottom: 12px;
}

.vd-section .vd-label {
    margin-bottom: 4px;
}

.vd-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: var(--bg-tertiary);
    padding: 8px 10px;
    border-radius: 6px;
}

.vd-mono {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
}

.vd-dismissed-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.vd-dismissed-section .vd-grid {
    margin-bottom: 8px;
}

.vd-dismissed-section .vd-text {
    background: rgba(239, 68, 68, 0.1);
}

.vd-id {
    opacity: 0.6;
    margin-bottom: 0;
}

.vd-id .vd-mono {
    background: transparent;
    padding: 0;
}

.vd-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-dismiss-action,
.btn-undismiss {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-dismiss-action {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.btn-dismiss-action:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-undismiss {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.btn-undismiss:hover {
    background: rgba(34, 197, 94, 0.25);
}

.btn-dismiss-action .material-icons-outlined,
.btn-undismiss .material-icons-outlined {
    font-size: 16px;
}

/* Feature Restrictions in Add Violation Modal */
.feature-restrictions {
    margin-top: 4px;
}

.feature-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.feature-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

/* Restriction Icon in Table */
.restriction-icon {
    font-size: 14px;
    color: #f97316;
    margin-left: 4px;
    vertical-align: middle;
}

/* Restriction Tags in Details Modal */
.vd-restrictions {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    padding: 10px;
}

.vd-restriction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.vd-restriction-tag {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Empty State */
.admin-standing-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.admin-standing-empty .material-icons-outlined {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-standing-page {
        padding: 1rem;
    }

    .admin-standing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-standing-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .violations-table-container {
        overflow-x: auto;
    }

    .violations-table {
        min-width: 600px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .user-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .user-detail-standing {
        text-align: left;
    }
}
