/* Admin-specific styles */
body { background: #f3f4f6; }

.admin-layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	min-height: 100vh;
}

.sidebar {
	background: #1f2937;
	color: white;
	padding: 1rem;
}

.sidebar h2 {
	padding: 1rem 0;
	border-bottom: 1px solid #374151;
	margin-bottom: 1rem;
}

.sidebar-menu {
	list-style: none;
}

.sidebar-menu li {
	margin-bottom: 0.5rem;
}

.sidebar-menu a {
	position: relative;
	color: white;
	text-decoration: none;
	padding: 0.75rem 1rem;
	display: block;
	border-radius: 8px;
	transition: background 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	background: #374151;
}

.main-content {
	padding: 2rem;
	overflow-y: auto;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: white;
	padding: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card .label {
	color: #666;
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.stat-card .value {
	font-size: 2rem;
	font-weight: bold;
	color: #333;
}

.stat-card.pending { border-left: 4px solid #f59e0b; }
.stat-card.investigating { border-left: 4px solid #3b82f6; }
.stat-card.resolved { border-left: 4px solid #10b981; }
.stat-card.high { border-left: 4px solid #ef4444; }

.data-table {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.data-table th {
	background: #f9fafb;
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: #666;
	border-bottom: 1px solid #e5e7eb;
}

.data-table td {
	padding: 1rem;
	border-bottom: 1px solid #f3f4f6;
}

.data-table tr:hover {
	background: #f9fafb;
}

.filters {
	background: white;
	padding: 1.5rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	align-items: end;
}

.filter-group {
	flex: 1;
	min-width: 150px;
}

.logout-btn {
	position: fixed;
	bottom: 2rem;
	left: 1rem;
	width: 230px;
	padding: 0.75rem;
	background: #ef4444;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	z-index: 10;
}

/* Login screen specific */
.login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
}

.login-box {
	background: white;
	padding: 2rem;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
	width: 100%;
	max-width: 400px;
}

/* Authority tracking styles */
.authority-list {
	background: #f9fafb;
	padding: 1rem;
	border-radius: 8px;
	margin-top: 1rem;
}

.authority-item {
	background: white;
	padding: 1rem;
	border-radius: 6px;
	margin-bottom: 0.75rem;
	border-left: 3px solid #6366f1;
}

.authority-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #dbeafe;
	color: #1e40af;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 600;
}

/* Publishing styles */
.publish-section {
	background: #f0fdf4;
	border: 2px dashed #10b981;
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 1rem;
}

.publish-section.published {
	background: #f0f9ff;
	border-color: #3b82f6;
	border-style: solid;
}

.action-buttons {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* Enhanced modal styles */
.modal-tabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid #e5e7eb;
}

.modal-tab {
	padding: 0.75rem 1rem;
	background: none;
	border: none;
	color: #666;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s;
}

.modal-tab.active {
	color: #6366f1;
	border-bottom-color: #6366f1;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Assignment section */
.assignment-section {
	background: #f0f9ff;
	padding: 1.5rem;
	border-radius: 8px;
	margin-top: 2rem;
	border-left: 4px solid #3b82f6;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: all;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #6366f1;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #10b981; }
.toast.error .toast-icon { color: #ef4444; }
.toast.warning .toast-icon { color: #f59e0b; }
.toast.info .toast-icon { color: #3b82f6; }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Confirm Modal Styles */
.confirm-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.confirm-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
}

.confirm-body {
    padding: 1.5rem 0;
    text-align: center;
}

.confirm-body p {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

.confirm-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.confirm-footer .btn {
    flex: 1;
    max-width: 150px;
}

/* Confirm modal animation */
#confirmModal .modal-content {
    animation: confirmScale 0.2s ease-out;
}

@keyframes confirmScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Format multi-line values in admin */
.wallet-address {
    background: white;
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    border-left: 3px solid #6366f1;
}

.wallet-address:hover {
    background: #f0f9ff;
    border-left-color: #3b82f6;
}

.formatted-line {
    margin: 0.25rem 0;
    padding: 0.25rem 0;
}

/* Modern Dropdown Styling */
#reportModal select,
.modal select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5rem;
    min-width: 140px;
}

/* Hover state */
#reportModal select:hover,
.modal select:hover {
    border-color: #6366f1;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Focus state */
#reportModal select:focus,
.modal select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Category-specific colors */
select[onchange*="category"] option[value="theft"] {
    background: #fee2e2;
}
select[onchange*="category"] option[value="scam"] {
    background: #ede9fe;
}
select[onchange*="category"] option[value="phishing"] {
    background: #e0f2fe;
}
select[onchange*="category"] option[value="bug"] {
    background: #d1fae5;
}

/* Status-specific colors */
select[onchange*="Status"] {
    font-weight: 600;
}

select[onchange*="Status"] option[value="pending"] {
    background: #fef3c7;
    color: #92400e;
}
select[onchange*="Status"] option[value="investigating"] {
    background: #dbeafe;
    color: #1e40af;
}
select[onchange*="Status"] option[value="resolved"] {
    background: #d1fae5;
    color: #065f46;
}
select[onchange*="Status"] option[value="rejected"] {
    background: #fee2e2;
    color: #991b1b;
}

/* Priority-specific styling */
select[onchange*="Priority"] option[value="low"] {
    background: #f3f4f6;
}
select[onchange*="Priority"] option[value="medium"] {
    background: #fef3c7;
}
select[onchange*="Priority"] option[value="high"] {
    background: #fed7aa;
}
select[onchange*="Priority"] option[value="critical"] {
    background: #fecaca;
}

select[onchange*="category"] option[value="rug_pull"] {
    background: #fef3c7;
}
select[onchange*="category"] option[value="abuse"] {
    background: #f3f4f6;
}
select[onchange*="category"] option[value="other"] {
    background: #f9fafb;
}


