:root {
    --bg-primary: #0b1121;
    --bg-secondary: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-color: rgba(56, 189, 248, 0.08);
    --border-hover: rgba(56, 189, 248, 0.2);
    --text-primary: #f0f9ff;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --accent: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-light: #7dd3fc;
    --accent-muted: rgba(14, 165, 233, 0.12);
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 40%, #6366f1 100%);
    --accent-gradient-hover: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 40%, #818cf8 100%);
    --cloud-glow: rgba(56, 189, 248, 0.35);
    --cloud-shimmer: #6366f1;
    --cloud-highlight: #7dd3fc;
    --success: #22c55e;
    --success-muted: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --warning-muted: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-muted: rgba(239, 68, 68, 0.1);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.25), 0 0 40px rgba(99, 102, 241, 0.15);
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cloud-shimmer) 0%, var(--accent) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Login Screen */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15), 0 0 80px rgba(99, 102, 241, 0.08), 0 25px 50px rgba(0, 0, 0, 0.3);
}

.login-logo {
    height: 64px;
    margin-bottom: 24px;
}

.login-box h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.login-box p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35), 0 0 20px rgba(99, 102, 241, 0.1);
}

.btn-discord:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 16px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
}

.user-role {
    font-size: 10px;
    text-transform: uppercase;
}

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.badge {
    background: var(--accent-muted);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.header-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: right;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.stat-item.warning .stat-value {
    color: var(--danger);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* App Layout with Sidebar */
.app-layout {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 120px);
}

/* Sidebar Navigation */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 24px;
}

.nav-category {
    margin-bottom: 20px;
}

.nav-category:last-child {
    margin-bottom: 0;
}

.nav-category-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    margin-bottom: 2px;
}

.nav-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--accent-muted);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.1);
}

.nav-btn.active .nav-icon {
    opacity: 1;
}

.nav-icon {
    font-size: 16px;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main {
    flex: 1;
    min-width: 0;
    padding-bottom: 48px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 200ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.search-box input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    width: 220px;
    transition: border-color var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Table */
.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.loading-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 48px;
}

/* Player Info */
.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    object-fit: contain;
}

.player-name {
    font-weight: 500;
}

.player-uuid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
}

/* Server Badge */
.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-muted);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.server-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

/* IP Address - Blurred for privacy */
.ip-address {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-secondary);
    filter: blur(5px);
    transition: filter 0.2s ease;
    cursor: default;
    user-select: none;
}

.ip-address.can-view {
    cursor: pointer;
}

.ip-address.can-view:hover {
    filter: blur(0);
    user-select: text;
}

/* Ping */
.ping {
    font-weight: 500;
    font-size: 12px;
}

.ping.good {
    color: var(--success);
}

.ping.medium {
    color: var(--warning);
}

.ping.bad {
    color: var(--danger);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-sm {
    padding: 5px 8px;
    font-size: 12px;
}

.btn-icon {
    padding: 6px;
    min-width: 28px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3), 0 0 12px rgba(99, 102, 241, 0.1);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-warning {
    background: var(--warning-muted);
    color: var(--warning);
}

.btn-warning:hover {
    background: rgba(234, 179, 8, 0.15);
}

.btn-danger {
    background: var(--danger-muted);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-success {
    background: var(--success-muted);
    color: var(--success);
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.15);
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.server-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all var(--transition);
}

.server-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1), 0 0 15px rgba(99, 102, 241, 0.05);
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.server-name {
    font-size: 14px;
    font-weight: 500;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
}

.server-status.online {
    color: var(--success);
}

.server-status.offline {
    color: var(--danger);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.server-status.online .status-dot {
    background: var(--success);
}

.server-status.offline .status-dot {
    background: var(--danger);
}

.server-players {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.server-players-label {
    font-size: 12px;
    color: var(--text-muted);
}

.loading-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    animation: modalSlide 200ms ease;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.12), 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
}

/* Date/Time Input Styling */
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"] {
    cursor: pointer;
    position: relative;
    color-scheme: dark;
}

/* Make the calendar icon larger and more clickable */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1);
    opacity: 1;
    width: 24px;
    height: 24px;
    padding: 4px;
    margin-right: -4px;
    background-size: contain;
    transition: transform var(--transition), opacity var(--transition);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Make clicking anywhere on the input open the picker */
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Form hints */
.form-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* Custom Duration Inputs */
.custom-duration-inputs {
    display: flex;
    gap: 8px;
}

.custom-duration-inputs input[type="number"] {
    flex: 1;
    min-width: 80px;
}

.custom-duration-inputs select {
    flex: 2;
}

.custom-duration-group {
    animation: fadeIn 200ms ease;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: -8px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1001;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    animation: toastSlide 200ms ease;
    min-width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast-icon {
    font-size: 14px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast-message {
    flex: 1;
    font-size: 13px;
}

/* Date/Time */
.datetime {
    font-size: 12px;
    color: var(--text-muted);
}

.permanent-badge {
    display: inline-block;
    background: var(--danger-muted);
    color: var(--danger);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .app {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-item {
        text-align: left;
    }

    .nav {
        overflow-x: auto;
        margin: 0 -16px 24px;
        padding: 0 16px 1px;
    }

    .nav-btn {
        white-space: nowrap;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
    }

    .dashboard-panel {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* Clickable Rows */
.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: var(--bg-card-hover);
}

/* Player Dashboard Overlay */
.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: flex-end;
    z-index: 1000;
}

.dashboard-overlay.active {
    display: flex;
}

.dashboard-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 520px;
    height: 100%;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    animation: slideIn 200ms ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.dashboard-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    z-index: 10;
}

.dashboard-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Dashboard Content */
.dashboard {
    padding: 24px;
}

.dashboard-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-avatar {
    width: auto;
    height: 64px;
    border-radius: var(--radius-md);
}

.dashboard-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-uuid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
    display: block;
    margin-bottom: 8px;
}

.dashboard-status {
    display: flex;
    gap: 6px;
}

.status-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.status-tag.success {
    background: var(--success-muted);
    color: var(--success);
}

.status-tag.warning {
    background: var(--warning-muted);
    color: var(--warning);
}

.status-tag.danger {
    background: var(--danger-muted);
    color: var(--danger);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-card-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dashboard-section {
    margin-bottom: 24px;
}

.dashboard-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.info-value {
    font-size: 12px;
    font-weight: 500;
}

/* Punishment List */
.punishment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.punishment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    border-left: 3px solid var(--border-color);
}

.punishment-item.warning {
    border-left-color: var(--warning);
}

.punishment-item.ban {
    border-left-color: var(--danger);
}

.punishment-reason {
    font-size: 13px;
    margin-bottom: 4px;
}

.punishment-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Notes */
.note-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.note-form textarea {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    resize: none;
    min-height: 60px;
}

.note-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

.note-content {
    font-size: 13px;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.empty-text {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Role Management */
.roles-info {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.roles-info p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.perm-count {
    background: var(--accent-muted);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.priority-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
}

.perm-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.perm-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.perm-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: monospace;
}

/* Kanban Board */
.kanban-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kanban-controls select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 200px;
}

.kanban-container {
    display: flex;
    gap: 24px;
}

.kanban-board {
    flex: 1;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: 500px;
}

.kanban-column {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    font-weight: 600;
    font-size: 14px;
}

.card-count {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.column-cards {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 450px;
}

.kanban-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.kanban-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kanban-card[draggable="true"] {
    cursor: grab;
}

.kanban-card[draggable="true"]:active {
    cursor: grabbing;
}

.card-priority-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.card-title {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
    padding-left: 8px;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 8px;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
}

.card-assigned {
    color: var(--text-secondary);
}

.card-priority {
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    text-transform: uppercase;
}

.add-card-btn {
    margin: 12px;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.add-card-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-muted);
}

.add-column-btn {
    min-width: 80px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.add-column-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Kanban Sidebar */
.kanban-sidebar {
    width: 280px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-shrink: 0;
    max-height: 550px;
    overflow-y: auto;
}

.kanban-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.activity-user {
    display: block;
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 4px;
}

.activity-text {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-time {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* Card Detail Modal */
.card-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-section {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-section h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 13px;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
}

.priority-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    background: var(--accent-muted);
    color: var(--accent);
}

.detail-actions {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

/* Time Away */
.timeaway-container {
    display: flex;
    gap: 24px;
}

.timeaway-calendar-section {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header-cell {
    text-align: center;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.calendar-day {
    min-height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.today {
    border: 2px solid var(--accent);
}

.calendar-day.has-absence {
    background: var(--accent-muted);
}

.day-number {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.absence-badge {
    font-size: 10px;
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeaway-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.timeaway-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    border-left: 3px solid var(--text-muted);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.request-card.clickable {
    cursor: pointer;
}

.request-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: var(--bg-secondary);
}

.request-card.pending {
    border-left-color: var(--warning);
}

.request-card.approved {
    border-left-color: var(--success);
}

.request-card.rejected {
    border-left-color: var(--danger);
}

.request-user {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
}

.request-dates {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.request-reason {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-style: italic;
}

.request-status {
    font-size: 11px;
    font-weight: 500;
}

.status-pending {
    color: var(--warning);
}

.status-approved {
    color: var(--success);
}

.status-rejected {
    color: var(--danger);
}

.request-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Time Away Detail Modal */
.timeaway-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeaway-detail .detail-status {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.timeaway-detail .detail-status.status-pending {
    color: var(--warning);
    border: 1px solid var(--warning);
}

.timeaway-detail .detail-status.status-approved {
    color: var(--success);
    border: 1px solid var(--success);
}

.timeaway-detail .detail-status.status-rejected {
    color: var(--danger);
    border: 1px solid var(--danger);
}

.timeaway-detail .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeaway-detail .detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeaway-detail .detail-value {
    font-size: 14px;
    color: var(--text-primary);
}

.timeaway-detail .detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.timeaway-detail .detail-actions .btn {
    flex: 1;
}

.timeaway-detail .detail-delete {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Announcements Grid */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.announcement-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    border-left: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: var(--border-hover);
}

.announcement-card.priority-laag {
    border-left-color: var(--success);
}

.announcement-card.priority-normaal {
    border-left-color: var(--accent);
}

.announcement-card.priority-hoog {
    border-left-color: var(--warning);
}

.announcement-card.priority-kritiek {
    border-left-color: var(--danger);
}

.announcement-card.priority-kritiek::before {
    background: linear-gradient(90deg, var(--danger), transparent);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.announcement-header h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.announcement-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.announcement-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.announcement-card .priority-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.priority-laag .priority-badge {
    background: var(--success-muted);
    color: var(--success);
}

.priority-normaal .priority-badge {
    background: var(--accent-muted);
    color: var(--accent);
}

.priority-hoog .priority-badge {
    background: var(--warning-muted);
    color: var(--warning);
}

.priority-kritiek .priority-badge {
    background: var(--danger-muted);
    color: var(--danger);
}

/* Events Calendar Section */
.events-container {
    display: flex;
    gap: 24px;
}

.events-calendar-section {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.events-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.events-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.events-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.calendar-day.has-events {
    background: rgba(59, 130, 246, 0.08);
}

.event-calendar-badge {
    font-size: 10px;
    color: white;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all var(--transition);
}

.event-calendar-badge:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Event List Cards */
.event-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid var(--accent);
}

.event-list-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.event-list-card.type-meeting {
    border-left-color: #3b82f6;
}

.event-list-card.type-event {
    border-left-color: #22c55e;
}

.event-list-card.type-training {
    border-left-color: #f59e0b;
}

.event-list-card.type-other {
    border-left-color: #a855f7;
}

.event-list-type {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.event-list-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-list-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.event-list-location {
    font-size: 11px;
    color: var(--text-muted);
}

/* Event Detail Modal */
.event-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-detail-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.event-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-row:last-of-type {
    border-bottom: none;
}

.event-detail-label {
    font-size: 13px;
    color: var(--text-muted);
}

.event-detail-value {
    font-size: 13px;
    font-weight: 500;
}

.event-detail-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.event-detail-section .event-detail-label {
    display: block;
    margin-bottom: 8px;
}

.event-detail-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.event-detail-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

/* ===== LuckPerms Styles ===== */
.luckperms-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 12px;
}

.luckperms-status .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.luckperms-status.available .status-indicator {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.luckperms-status.unavailable .status-indicator {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.luckperms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.luckperms-search-section,
.luckperms-groups-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.luckperms-search-section h3,
.luckperms-groups-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.luckperms-search-section .search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.luckperms-search-section .search-box input {
    flex: 1;
}

.luckperms-player-result {
    min-height: 200px;
}

.luckperms-player-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.luckperms-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.luckperms-player-header img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
}

.luckperms-player-header .player-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.luckperms-player-header .player-info .uuid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, monospace;
}

.luckperms-player-groups {
    margin-bottom: 16px;
}

.luckperms-player-groups h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.luckperms-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.luckperms-group-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--accent-muted);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
}

.luckperms-group-tag.primary {
    background: var(--success-muted);
    color: var(--success);
    border: 1px solid var(--success);
}

.luckperms-group-tag .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: inherit;
    font-size: 10px;
    cursor: pointer;
    transition: all var(--transition);
}

.luckperms-group-tag .remove-btn:hover {
    background: var(--danger);
    color: white;
}

.luckperms-add-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.luckperms-add-group select {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.luckperms-groups-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.luckperms-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.luckperms-group-item:hover {
    border-color: var(--accent);
}

.luckperms-group-item .group-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luckperms-group-item .group-name {
    font-weight: 500;
}

.luckperms-group-item .group-weight {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 6px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.luckperms-group-item .group-prefix {
    font-size: 12px;
    color: var(--text-secondary);
}

.luckperms-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.luckperms-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .luckperms-container {
        grid-template-columns: 1fr;
    }
}

/* Server Modal Overlay */
.server-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.server-modal-overlay.active {
    display: flex;
}

.server-modal-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    animation: serverModalSlide 250ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.12), 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes serverModalSlide {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.server-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    z-index: 10;
}

.server-modal-close:hover {
    background: var(--danger-muted);
    border-color: var(--danger);
    color: var(--danger);
}

/* Server Modal Content */
.server-modal {
    padding: 24px;
}

.server-modal-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.server-modal-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-modal-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-modal-name::before {
    content: '🖥️';
    font-size: 20px;
}

.server-modal-count {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 30px;
}

.server-modal-empty {
    text-align: center;
    padding: 48px 24px;
}

/* Server Players Grid */
.server-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.server-player-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.server-player-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

.server-player-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(14, 165, 233, 0.08);
}

.server-player-card:hover::before {
    opacity: 0.05;
}

.server-player-avatar {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.server-player-avatar img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: transparent;
    border: 2px solid var(--border-color);
    transition: all var(--transition);
}

.server-player-card:hover .server-player-avatar img {
    border-color: var(--accent);
}

.server-player-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.server-player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-player-rank {
    display: flex;
}

.rank-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--accent-muted);
    color: var(--accent);
    text-transform: capitalize;
}

/* Rank Colors */
.server-player-rank[data-rank="owner"] .rank-badge,
.server-player-rank[data-rank="admin"] .rank-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(234, 88, 12, 0.15));
    color: #ef4444;
}

.server-player-rank[data-rank="moderator"] .rank-badge,
.server-player-rank[data-rank="mod"] .rank-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.server-player-rank[data-rank="helper"] .rank-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.server-player-rank[data-rank="vip"] .rank-badge,
.server-player-rank[data-rank="premium"] .rank-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.server-player-rank[data-rank="default"] .rank-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
}

.server-player-ping {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    position: relative;
    z-index: 1;
}

.server-player-ping.good {
    color: var(--success);
}

.server-player-ping.medium {
    color: var(--warning);
}

.server-player-ping.bad {
    color: var(--danger);
}

/* Clickable Server Card */
.server-card.clickable {
    cursor: pointer;
    transition: all var(--transition);
}

.server-card.clickable:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.12), 0 0 20px rgba(99, 102, 241, 0.06);
    transform: translateY(-4px);
}

.server-card.clickable:active {
    transform: translateY(-2px);
}

/* Responsive for server modal */
@media (max-width: 768px) {
    .server-modal-panel {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .server-players-grid {
        grid-template-columns: 1fr;
    }

    .server-modal-overlay {
        padding: 0;
    }
}

/* Search with Dropdown */
.search-with-dropdown {
    position: relative;
}

.search-with-dropdown input {
    width: 280px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
    animation: dropdownFade 150ms ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.offline-indicator {
    font-size: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-no-results-icon {
    font-size: 24px;
    opacity: 0.5;
}

/* Offline status tag */
.status-tag.offline {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Responsive for search dropdown */
@media (max-width: 768px) {
    .search-with-dropdown input {
        width: 100%;
    }

    .search-results-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        top: auto;
        max-height: 50vh;
    }
}

/* ===== Documents Styles ===== */
.docs-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.docs-controls select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 180px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.doc-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.doc-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.doc-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.doc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    font-size: 24px;
    flex-shrink: 0;
}

.doc-icon.pdf {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.doc-icon.word {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.doc-icon.excel {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.doc-icon.image {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.doc-icon.text {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-word;
}

.doc-category {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-muted);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.doc-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.doc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.doc-size {
    font-weight: 500;
}

.doc-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.doc-actions .btn {
    flex: 1;
}

/* Upload Modal Styles */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.upload-zone-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.upload-zone-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-zone-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-zone-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.upload-zone-file-icon {
    font-size: 24px;
}

.upload-zone-file-info {
    flex: 1;
    text-align: left;
}

.upload-zone-file-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.upload-zone-file-size {
    font-size: 11px;
    color: var(--text-muted);
}

.upload-zone-file-remove {
    background: var(--danger-muted);
    color: var(--danger);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.upload-zone-file-remove:hover {
    background: var(--danger);
    color: white;
}

/* Empty docs state */
.docs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
}

.docs-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.docs-empty-text {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.docs-empty-hint {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive docs */
@media (max-width: 768px) {
    .docs-controls {
        flex-direction: column;
        width: 100%;
    }

    .docs-controls select {
        width: 100%;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HuskSync Styles ==================== */

.husksync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.husksync-search-section h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.husksync-player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 500px;
    overflow-y: auto;
}

.husksync-player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.husksync-player-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateX(4px);
}

.husksync-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.husksync-player-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.husksync-player-uuid-small {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.husksync-snapshots-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.husksync-selected-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-name-large {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.player-uuid {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.husksync-snapshot-info {
    margin-bottom: 16px;
}

.husksync-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.husksync-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.husksync-table thead th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.husksync-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.husksync-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.husksync-table tbody tr:last-child {
    border-bottom: none;
}

.husksync-table td {
    padding: 12px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.husksync-snapshot-row.pinned {
    background: rgba(14, 165, 233, 0.05);
}

.snapshot-index {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    width: 40px;
}

.snapshot-time {
    white-space: nowrap;
}

.snapshot-date {
    font-weight: 500;
}

.snapshot-time-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.snapshot-id code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.snapshot-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.badge-pinned {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-auto {
    background: rgba(113, 113, 122, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(113, 113, 122, 0.2);
}

.badge-disconnect {
    background: var(--warning-muted);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-worldsave {
    background: var(--success-muted);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-shutdown {
    background: var(--danger-muted);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-command {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-restore {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-api {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-default {
    background: rgba(113, 113, 122, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(113, 113, 122, 0.2);
}

.empty-state-large {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-large .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state-large h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-large code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent);
}

/* Responsive HuskSync */
@media (max-width: 768px) {
    .husksync-snapshots-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .snapshot-actions {
        flex-wrap: wrap;
    }

    .husksync-table {
        font-size: 12px;
    }

    .husksync-table td,
    .husksync-table th {
        padding: 8px 10px;
    }
}

/* ===== Dashboard ===== */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.dash-stat {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition);
}

.dash-stat:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 20px;
    flex-shrink: 0;
}

.dash-stat-icon.players { background: rgba(34, 197, 94, 0.12); }
.dash-stat-icon.servers { background: rgba(59, 130, 246, 0.12); }
.dash-stat-icon.bans { background: rgba(239, 68, 68, 0.12); }
.dash-stat-icon.mutes { background: rgba(245, 158, 11, 0.12); }
.dash-stat-icon.warnings { background: rgba(249, 115, 22, 0.12); }
.dash-stat-icon.reports { background: rgba(168, 85, 247, 0.12); }
.dash-stat-icon.known { background: rgba(14, 165, 233, 0.10); }
.dash-stat-icon.tasks { background: rgba(6, 182, 212, 0.12); }

.dash-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-stat-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.dash-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
}

.dash-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-card-header h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
}

.dash-card-body {
    padding: 0;
}

.dash-card-body .loading-card {
    border: none;
    border-radius: 0;
}

/* Server bars */
.dash-server-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.dash-server-item:last-child {
    border-bottom: none;
}

.dash-server-item:hover {
    background: var(--bg-card-hover);
}

.dash-server-name {
    font-size: 13px;
    font-weight: 600;
    min-width: 100px;
}

.dash-server-bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.dash-server-bar {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-gradient);
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
}

.dash-server-count {
    font-size: 13px;
    font-weight: 600;
    min-width: 28px;
    text-align: right;
    color: var(--text-secondary);
}

/* Activity feed */
.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.dash-activity-item:last-child {
    border-bottom: none;
}

.dash-activity-item:hover {
    background: var(--bg-card-hover);
}

.dash-activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dash-activity-icon.ban { background: rgba(239, 68, 68, 0.12); }
.dash-activity-icon.warn { background: rgba(249, 115, 22, 0.12); }

.dash-activity-body {
    flex: 1;
    min-width: 0;
}

.dash-activity-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.dash-activity-text strong {
    font-weight: 600;
}

.dash-activity-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Event items */
.dash-event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition);
}

.dash-event-item:last-child {
    border-bottom: none;
}

.dash-event-item:hover {
    background: var(--bg-card-hover);
}

.dash-event-date-box {
    width: 44px;
    height: 44px;
    background: var(--accent-muted);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-event-day {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.dash-event-month {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

.dash-event-info {
    flex: 1;
    min-width: 0;
}

.dash-event-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-event-type {
    font-size: 11px;
    color: var(--text-muted);
}

/* Announcement items */
.dash-announcement-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.dash-announcement-item:last-child {
    border-bottom: none;
}

.dash-announcement-item:hover {
    background: var(--bg-card-hover);
}

.dash-announcement-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.dash-announcement-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.dash-announcement-priority {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.dash-announcement-priority.laag { background: var(--success-muted); color: var(--success); }
.dash-announcement-priority.normaal { background: var(--accent-muted); color: var(--accent); }
.dash-announcement-priority.hoog { background: var(--warning-muted); color: var(--warning); }
.dash-announcement-priority.kritiek { background: var(--danger-muted); color: var(--danger); }

.dash-announcement-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    .dash-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}