@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== VARIABLES ==================== */
/* --- Server Context Box --- */
.current-server-box {
    margin: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.server-context-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-server-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-server-icon.placeholder {
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.server-details {
    display: flex;
    flex-direction: column;
}

.server-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.server-name-display {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.change-server-btn {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    transition: color 0.2s;
}

.change-server-btn:hover {
    color: #fff;
}

/* --- User Profile Section --- */
.user-profile-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-small.placeholder {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-info-text .username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.logout-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
}

.logout-link:hover {
    color: #ef4444;
}
:root {
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-light: rgba(59, 130, 246, 0.08);
    --primary-glow: rgba(59, 130, 246, 0.25);
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --bg-base: #09090b;
    --bg-elevated: #18181b;
    --bg-surface: rgba(24, 24, 27, 0.7);
    --bg-card: rgba(30, 30, 36, 0.5);
    --bg-hover: rgba(255, 255, 255, 0.04);
    --sidebar-bg: rgba(14, 14, 16, 0.95);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --border: rgba(255, 255, 255, 0.06);
    --border-active: rgba(59, 130, 246, 0.3);
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.15);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== RESET ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient background glow removed for cleaner animation */

.dashboard-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: transparent;
}

#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ==================== SIDEBAR ==================== */
aside {
    width: 260px;
    min-width: 260px;
    background: rgba(10, 10, 15, 0.7); /* Darker sidebar for better modern hierarchy */
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 14px;
    z-index: 10;
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding: 0 6px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
    transition: var(--transition);
}

.brand-icon:hover {
    transform: rotate(-8deg) scale(1.05);
}

.brand-info h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-info span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    padding-left: 12px;
}

.nav-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), rgba(var(--primary-rgb), 0.7));
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.nav-item.active::before {
    opacity: 0;
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-hover);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.status-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(var(--success-rgb), 0.6);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(var(--success-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0 12px rgba(var(--success-rgb), 0.8);
    }
}

/* ==================== MAIN CONTENT ==================== */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: transparent; /* Allow canvas background to show */
}

/* Header */
header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.4); /* Glass effect without blur for NUI safety */
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb span {
    color: var(--text-muted);
}

.breadcrumb span.active {
    color: var(--text-primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-clock {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

/* Content */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    scroll-behavior: smooth;
    background: rgba(12, 12, 18, 0.65); /* Darker overlay for extreme readability */
}

.content::-webkit-scrollbar {
    width: 5px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Page Title */
.page-title {
    margin-bottom: 32px;
}

.page-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #fff; /* Pure white for maximum visibility */
    margin-bottom: 4px;
}

.page-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

/* ==================== STAT CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.15); /* More transparent to show the animated blue gradient */
    border: 1px solid rgba(59, 130, 246, 0.2); /* Subtle blue border */
    padding: 24px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(30, 41, 59, 0.3);
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent);
    pointer-events: none;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.stat-icon-box .material-symbols-outlined {
    font-size: 22px;
}

.stat-trend {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-trend {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.stat-trend.fivem {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.stat-trend.warn {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
}

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

.stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* ==================== PANELS / CARDS ==================== */
.sections-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.panel {
    background: rgba(20, 20, 25, 0.6); /* Slightly more opaque for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.08); /* More visible border */
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

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

.panel-header h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.btn-sm {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: var(--border-active);
}

/* ==================== FORMS ==================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:not(.text-input) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18' viewBox='0 -960 960 960' width='18' fill='%23a1a1aa'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input option {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ==================== MODULES ==================== */
.modules-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: transparent;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.module-item:hover {
    background: var(--bg-hover);
    border-color: var(--border);
}

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

.module-name {
    font-size: 13px;
    font-weight: 600;
}

.module-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.toggle-icon {
    font-size: 36px;
    transition: var(--transition-spring);
}

.toggle-icon:not(.dimmed) {
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(var(--primary-rgb), 0.4));
}

.toggle-icon.dimmed {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ==================== COMMANDS ==================== */
.commands-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.command-tag {
    padding: 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.command-tag.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.command-tag:hover {
    border-color: var(--border-active);
}

/* ==================== DATA TABLE ==================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.data-table td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr {
    transition: var(--transition);
}

/* ==================== XP BARS & RANKING ==================== */
.xp-info-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.xp-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.xp-stats-text {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #9ca3af, #4b5563);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(75, 85, 99, 0.3);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(120, 53, 15, 0.3);
}

/* ==================== TABS ==================== */
.tab-bar,
.log-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab {
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.tab:hover {
    border-color: var(--border-active);
    color: var(--text-secondary);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

/* ==================== LOG ENTRIES ==================== */
.log-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 340px;
    overflow-y: auto;
}

.log-list::-webkit-scrollbar {
    width: 4px;
}

.log-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.log-entry:hover {
    background: var(--bg-hover);
}

.log-type-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
    letter-spacing: 0.3px;
}

.log-type-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.log-type-badge.warn {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
}

.log-type-badge.danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

.log-type-badge.fivem {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.log-message {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==================== SUGGESTIONS ==================== */
.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
}

.suggestion-list::-webkit-scrollbar {
    width: 4px;
}

.suggestion-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.suggestion-card {
    padding: 18px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.suggestion-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

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

.suggestion-user {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.suggestion-date {
    font-size: 11px;
    color: var(--text-muted);
}

.suggestion-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

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

.btn-approve,
.btn-reject {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-approve {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border-color: rgba(var(--success-rgb), 0.2);
}

.btn-approve:hover {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--success-rgb), 0.3);
}

.btn-reject {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border-color: rgba(var(--danger-rgb), 0.2);
}

.btn-reject:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--danger-rgb), 0.3);
}

.suggestion-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.suggestion-status.approved {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
}

.suggestion-status.rejected {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
}

/* ==================== FIVEM ==================== */
.fill-bar-container {
    background: rgba(255, 255, 255, 0.04);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 14px;
}

.fill-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.3);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fill-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.fill-text {
    margin-top: 6px;
    font-size: 12px;
    text-align: right;
    color: var(--primary);
    font-weight: 700;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.player-item:hover {
    background: var(--bg-hover);
}

.player-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px rgba(var(--success-rgb), 0.5);
}

.player-name {
    font-size: 13px;
    font-weight: 600;
}

/* ==================== ANNOUNCEMENTS ==================== */
.color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-spring);
    box-shadow: var(--shadow-sm);
}

.color-btn:hover {
    transform: scale(1.2);
}

.color-btn.selected {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.15);
}

code {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ==================== WARNINGS ==================== */
.warning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.warning-item:hover {
    background: var(--bg-hover);
}

.warning-info {
    flex: 1;
}

.warning-user {
    font-size: 12px;
    font-weight: 700;
    color: var(--warning);
}

.warning-reason {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.warning-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-delete-warn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-delete-warn:hover {
    color: var(--danger);
    background: rgba(var(--danger-rgb), 0.1);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: white;
    z-index: 1000;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: var(--transition-spring);
    pointer-events: none;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast.success {
    background: rgba(var(--success-rgb), 0.9);
}

.toast.error {
    background: rgba(var(--danger-rgb), 0.9);
}

.toast.info {
    background: rgba(var(--primary-rgb), 0.9);
}

/* ==================== LOADING SKELETON ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, rgba(255, 255, 255, 0.06) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate .stat-card:nth-child(1) {
    animation: fadeInUp 0.4s 0.05s both;
}

.animate .stat-card:nth-child(2) {
    animation: fadeInUp 0.4s 0.1s both;
}

.animate .stat-card:nth-child(3) {
    animation: fadeInUp 0.4s 0.15s both;
}

.animate .stat-card:nth-child(4) {
    animation: fadeInUp 0.4s 0.2s both;
}

.animate .panel {
    animation: fadeInUp 0.4s 0.25s both;
}

.animate .sections-grid>*:nth-child(1) .panel {
    animation: fadeInUp 0.4s 0.2s both;
}

.animate .sections-grid>*:nth-child(2) .panel {
    animation: fadeInUp 0.4s 0.3s both;
}

/* ==================== MATERIAL SYMBOLS ==================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1280px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    aside {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 20px;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }
}

.rank-badge {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.rank-badge.top-1 {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-badge.top-2 {
    background: #c0c0c0;
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.rank-badge.top-3 {
    background: #cd7f32;
    color: #000;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.xp-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.xp-progress-fill {
    height: 100%;
    background: var(--primary);
}

.birthday-countdown {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.birthday-countdown.soon {
    color: var(--danger);
    animation: livePulse 2s infinite;
}

/* ==================== BOT PROFILE (Redesigned) ==================== */
.bot-profile-card {
    background: rgba(30, 41, 59, 0.35); /* Solid transparent background, no blur to avoid black blocks */
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.bot-profile-banner {
    height: 120px;
    background: linear-gradient(135deg, #1e40af, #3b82f6); /* Richer blue gradient */
    position: relative;
}

.bot-profile-header {
    padding: 0 24px 24px 24px;
    position: relative;
    display: flex;
    align-items: center; /* Better alignment for buttons */
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Responsive */
}

.bot-profile-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bot-avatar-wrapper {
    position: relative;
    margin-top: -40px;
}

.bot-avatar {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    border: 4px solid #0f172a;
    background: #0f172a;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.bot-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid #1e293b;
}

.bot-name-container {
    flex: 1;
    margin-bottom: 0;
}

.bot-display-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-tag {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.bot-actions {
    display: flex;
    gap: 12px;
}

.bot-btn-add, .bot-btn-shop {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.bot-btn-add {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-btn-shop {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-btn-add:hover { 
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.bot-btn-shop:hover { 
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.bot-info-section {
    padding: 0 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-desc-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 16px 0 8px 0;
    letter-spacing: 0.5px;
}

.bot-desc-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.bot-commands-title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.bot-commands-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.bot-command-pill {
    background: #2b2d31;
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: var(--transition);
}

.bot-command-pill:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.commands-list-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.command-item-full {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.command-item-full:hover {
    border-color: var(--border-active);
    background: var(--primary-light);
}

.command-name-full {
    font-family: 'SF Mono', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.command-desc-full {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;

}

/* ==================== TOAST SYSTEM ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.85); /* Darker, more opaque as per rules */
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--error); }
.toast-warning { border-left: 4px solid var(--warning); }

/* ==================== BACKGROUND ==================== */
#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

.dashboard-container {
    background: transparent !important;
}

main {
    background: transparent !important;
}