:root {
    --bg-dark: #060709;
    --bg-darker: #040507;
    --card-bg: #0c0d12;
    --border: #14161f;
    --border-hover: #1c1e28;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --text: #f8fafc;
    --text-muted: #7e879b;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.15);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-dark);
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.05) 40%, var(--bg-dark) 80%);
    color: var(--text);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Sidebar Layout */
.sidebar {
    width: 250px;
    background-color: var(--bg-darker);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-left: 8px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: white;
}

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

.nav-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    padding-left: 8px;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: white;
    background-color: rgba(59, 130, 246, 0.08) !important;
    font-weight: 600;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

/* Sidebar Footer User Profile */
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-footer-icons {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    color: var(--text-muted);
}

.sidebar-footer-icons i {
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.sidebar-footer-icons i:hover {
    color: white;
}

.icon-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background-color: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 50%;
    font-weight: 800;
}

.user-profile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    position: relative;
}

.user-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #15171e;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-profile-info {
    flex-grow: 1;
    min-width: 0;
}

.user-profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Main Content Area */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--bg-dark);
}

/* Top Bar - scrolls with content, premium look */
.top-bar {
    height: 72px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 36px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(15,23,42,0.98) 0%, rgba(10,15,28,0.95) 100%);
    overflow: visible;
    flex-shrink: 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb span {
    color: white;
    font-weight: 600;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-nav-box {
    position: relative;
    width: 320px;
    transition: width 0.3s ease;
}

.search-nav-box input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px; /* Full pill / iOS capsule */
    color: rgba(255,255,255,0.9);
    font-size: 0.83rem;
    padding: 10px 72px 10px 40px;
    width: 100%;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-nav-box input::placeholder {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.8rem;
}

.search-nav-box input:focus {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 4px 20px rgba(0,0,0,0.3);
    color: white;
    width: 400px;
}

.search-nav-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.search-nav-box:focus-within i {
    color: rgba(99, 102, 241, 0.8);
}

.search-nav-shortcut {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.62rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    font-family: inherit;
}


.opinion-btn {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opinion-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.content-container {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-title h1 {
    margin: 0 0 6px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.header-badge {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.header-badge.active-game {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

.header-badge.danger-risk {
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.05);
}

.btn {
    background-color: var(--accent);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--border-hover);
}

/* Verdict Banner */
.verdict-banner-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.verdict-banner-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.verdict-banner-card.clean {
    border-color: rgba(16, 185, 129, 0.15);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, transparent 100%);
}

.verdict-banner-card.cheating {
    border-color: rgba(239, 68, 68, 0.15);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, transparent 100%);
}

.verdict-text-clean {
    color: var(--success);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.verdict-text-cheating {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.verdict-banner-card.warning {
    border-color: rgba(245, 158, 11, 0.15);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, transparent 100%);
}

.verdict-text-warning {
    color: var(--warning);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.verdict-duration {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cards & Layout */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
}

.info-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.info-dot.green { background-color: var(--success); }
.info-dot.blue { background-color: var(--accent); }
.info-dot.orange { background-color: var(--warning); }
.info-dot.red { background-color: var(--danger); }
.info-dot.yellow { background-color: #eab308; }

.inspect-error-box {
    margin-top: 16px;
    background-color: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    color: var(--warning);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Map & Screenshot Row */
.map-screenshot-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.map-container-box {
    height: 250px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 12px;
    z-index: 1;
}

.screenshot-container-box {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-darker);
    position: relative;
}

.screenshot-container-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshot-container-box img:hover {
    transform: scale(1.02);
}

.screenshot-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Detection Categories Selector */
.detection-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.detection-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detection-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.detection-cat-item:hover {
    border-color: var(--border-hover);
    background-color: var(--card-bg);
}

.detection-cat-item.active {
    background-color: var(--card-bg);
}

.detection-cat-item.active.cat-danger { border-color: rgba(239, 68, 68, 0.4); color: var(--danger); }
.detection-cat-item.active.cat-success { border-color: rgba(16, 185, 129, 0.4); color: var(--success); }
.detection-cat-item.active.cat-warning { border-color: rgba(245, 158, 11, 0.4); color: var(--warning); }
.detection-cat-item.active.cat-purple { border-color: rgba(139, 92, 246, 0.4); color: var(--purple); }

.detection-cat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detection-cat-item i {
    font-size: 1rem;
}

.cat-danger i { color: var(--danger); }
.cat-success i { color: var(--success); }
.cat-warning i { color: var(--warning); }
.cat-purple i { color: var(--purple); }

.detection-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detection-badge-count {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.cat-danger .detection-badge-count { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.cat-success .detection-badge-count { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.cat-warning .detection-badge-count { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.cat-purple .detection-badge-count { background-color: rgba(139, 92, 246, 0.1); color: var(--purple); }

.detection-details-panel {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.detection-placeholder {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.detection-placeholder i {
    font-size: 2.5rem;
}

/* Alert styling inside selection panel */
.ocean-alert-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
    gap: 16px;
}

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

.ocean-alert-card-red { border-left: 4px solid var(--danger); }
.ocean-alert-card-yellow { border-left: 4px solid var(--warning); }
.ocean-alert-card-green { border-left: 4px solid var(--success); }
.ocean-alert-card-purple { border-left: 4px solid var(--purple); }

.ocean-alert-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.ocean-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ocean-icon-box-red { background-color: rgba(239, 68, 68, 0.08); color: var(--danger); }
.ocean-icon-box-yellow { background-color: rgba(245, 158, 11, 0.08); color: var(--warning); }
.ocean-icon-box-green { background-color: rgba(16, 185, 129, 0.08); color: var(--success); }
.ocean-icon-box-purple { background-color: rgba(139, 92, 246, 0.08); color: var(--purple); }

.ocean-alert-content {
    flex-grow: 1;
}

.ocean-alert-title {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.ocean-alert-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.ocean-action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ocean-action-btn-red {
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.ocean-action-btn-red:hover {
    background-color: rgba(239, 68, 68, 0.08);
}

.ocean-action-btn-yellow {
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.ocean-action-btn-yellow:hover {
    background-color: rgba(245, 158, 11, 0.08);
}

/* Boot Sequence & Scanned Files */
.boot-sequence-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.boot-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -10px 0 18px 0;
}

.boot-row-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.boot-row-badge {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.boot-row-badge.badge-expected {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.bios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.bios-item {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px;
}

.bios-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.bios-val {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boot-efi-block {
    margin-top: 12px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boot-efi-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: white;
}

.boot-efi-left i {
    color: var(--text-muted);
}

.boot-efi-right {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File Detections styling */
.file-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-badge-pill {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
}

.file-badge-pill.signed {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.05);
}

.file-badge-pill.unsigned {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.file-filters-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.file-filter-btn {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-filter-btn.active {
    color: white;
    border-color: var(--border-hover);
    background-color: var(--card-bg);
}

.file-item-row {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.file-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.file-item-left i {
    color: var(--text-muted);
}

.file-item-info {
    min-width: 0;
}

.file-item-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.file-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-path {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.file-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.file-item-badge.unsigned {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.file-item-badge.packed {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* User Accounts Row */
.accounts-three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.profile-card:hover {
    border-color: var(--border-hover);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.profile-avatar-discord {
    border-radius: 50%;
    background-color: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-details {
    flex-grow: 1;
    min-width: 0;
}

.profile-name {
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-actions {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.profile-actions i {
    cursor: pointer;
}

.profile-actions i:hover {
    color: white;
}

.recording-software-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.recording-software-item i {
    color: var(--danger);
}

/* Mods List styling */
.mods-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mods-count-badges {
    display: flex;
    gap: 8px;
}

.mods-count-badge {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mods-count-badge.critical { color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.mods-count-badge.unknown { color: var(--warning); border-color: rgba(245, 158, 11, 0.2); }
.mods-count-badge.public { color: var(--success); border-color: rgba(16, 185, 129, 0.2); }

.mods-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.mods-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.mods-tab:hover {
    color: white;
}

.mods-tab.active {
    background-color: var(--bg-darker);
    color: white;
    border: 1px solid var(--border);
}

.mod-row-card {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.mod-row-card:hover {
    border-color: var(--border-hover);
}

.mod-row-card.mod-critical {
    border-left: 4px solid var(--danger);
}

.mod-row-card.mod-public {
    border-left: 4px solid var(--success);
}

.mod-row-card.mod-unknown {
    border-left: 4px solid var(--warning);
}

.mod-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mod-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-title-left i {
    font-size: 1rem;
}

.mod-critical i { color: var(--danger); }
.mod-public i { color: var(--success); }
.mod-unknown i { color: var(--warning); }

.mod-filename {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.mod-status-badges {
    display: flex;
    gap: 6px;
}

.mod-status-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.mod-status-badge.critical {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mod-status-badge.unknown-source {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.mod-status-badge.public {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mod-size {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mod-details-box {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mod-details-box span {
    font-family: monospace;
    word-break: break-all;
}

.mod-evidence-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin: 12px 0 6px 0;
    letter-spacing: 0.5px;
}

.mod-evidence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mod-evidence-tag {
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
}

.mod-download-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Tables & Recent Activities */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.ocean-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ocean-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

.ocean-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #cbd5e1;
    border-bottom: 1px solid var(--border);
}

.ocean-table tbody tr {
    transition: background-color 0.2s;
}

.ocean-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.table-path {
    font-family: monospace;
    font-size: 0.8rem;
    color: white;
}

.table-verdict-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.table-verdict-badge.normal {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.table-action-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.table-signed-check { color: var(--success); }
.table-signed-cross { color: var(--danger); }

/* Table search & pagination */
.table-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}

.table-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.table-search-box input {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    padding: 8px 12px 8px 32px;
    outline: none;
}

.table-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.pagination-btn:hover {
    color: white;
    border-color: var(--border-hover);
}

.pagination-btn.active {
    background-color: var(--border);
    color: white;
    font-weight: 700;
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 4px;
}

.page-size-selector {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Home / Dashboard styles mapping */
/* Ensure the standard index.html elements match this styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
}

.stat-item h4 {
    margin: 0 0 6px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

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

.data-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table td {
    padding: 14px 16px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: #cbd5e1;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.badge-pending { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-finished { background-color: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-scanning { background-color: rgba(59, 130, 246, 0.1); color: var(--accent); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-private { background-color: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border); }
.badge-cheating { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-clean { background-color: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 6, 9, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 440px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(12px);
    transition: all 0.25s ease;
    max-height: 88vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

/* PC Checkers View */
.pcc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.pcc-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s;
}

.pcc-stat-card:hover {
    border-color: rgba(99,102,241,0.35);
}

.pcc-stat-card .pcc-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
}

.pcc-stat-card .pcc-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pcc-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.pcc-chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
}

.pcc-chart-card h4 {
    margin: 0 0 18px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
}

.pcc-chart-card canvas {
    max-height: 200px;
}

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

.modal-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
    background: transparent;
    border: none;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: white;
    font-size: 0.85rem;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toggle-info h4 {
    margin: 0;
    font-size: 0.85rem;
    color: white;
}

.toggle-info p {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    transition: .2s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}

/* Filters row styling for home dashboard */
.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-row .search-box {
    flex-grow: 1;
    max-width: 400px;
    position: relative;
}

.filter-row .search-box input {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px 10px 32px;
    color: white;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-row .search-box input:focus {
    border-color: var(--accent);
}

.filter-row .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-controls {
    display: flex;
    gap: 12px;
}

.filter-select {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 10px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select:focus {
    border-color: var(--accent);
}

/* Active Scans Drawer */
.active-scans-drawer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 340px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-scans-drawer.active {
    transform: translateX(0);
}

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

.drawer-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-rail {
    width: 100%;
    height: 6px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    transition: width 0.4s ease;
}

/* Floating Particles Background */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.06; /* Very subtle */
    margin: 0;
    padding: 0;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    filter: blur(10px);
    bottom: -160px;
    animation: square 25s infinite;
    transition-timing-function: linear;
    border-radius: 50%;
}

.bg-bubbles li:nth-child(1) { left: 10%; background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%); }
.bg-bubbles li:nth-child(2) { left: 20%; width: 90px; height: 90px; animation-delay: 2s; animation-duration: 17s; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%); }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%); }
.bg-bubbles li:nth-child(4) { left: 40%; width: 70px; height: 70px; animation-duration: 22s; background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%); }
.bg-bubbles li:nth-child(5) { left: 70%; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.12) 100%); }
.bg-bubbles li:nth-child(6) { left: 80%; width: 130px; height: 130px; animation-delay: 3s; background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%); }
.bg-bubbles li:nth-child(7) { left: 92%; animation-delay: 7s; background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%); }

@keyframes square {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-900px) rotate(600deg);
    }
}

/* Premium iPhone/AirPods Style Capsule Notification System */
.ios-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
    width: auto;
    max-width: 90vw;
}

.ios-toast {
    pointer-events: auto;
    background: rgba(14, 16, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px; /* Fully rounded capsule shape */
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: toastSlideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Dynamic bounce effect */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-toast-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ios-toast-success .ios-toast-icon { color: var(--success); }
.ios-toast-error .ios-toast-icon { color: var(--danger); }
.ios-toast-warning .ios-toast-icon { color: var(--warning); }
.ios-toast-info .ios-toast-icon { color: var(--accent); }

.ios-toast-content {
    flex-grow: 1;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ios-toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.1px;
}

.ios-toast-message {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 1px;
}

.ios-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
}

.ios-toast-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.ios-toast.dismiss {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   OCEAN PREMIUM THEME LAYOUT & COLLAPSE STYLES
   ========================================== */

/* Smooth Transitions for Collapsing */
.sidebar, .main-wrapper, .top-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Collapsed Sidebar */
@media (min-width: 769px) {
    body.sidebar-collapsed .sidebar {
        width: 70px !important;
        padding: 24px 10px !important;
    }

    body.sidebar-collapsed .sidebar .brand-name,
    body.sidebar-collapsed .sidebar .nav-label,
    body.sidebar-collapsed .sidebar .nav-link span,
    body.sidebar-collapsed .sidebar .nav-link i.fa-chevron-right,
    body.sidebar-collapsed .sidebar .user-profile-info,
    body.sidebar-collapsed .sidebar .user-profile-arrow {
        display: none !important;
    }

    body.sidebar-collapsed .sidebar .brand {
        justify-content: center;
        padding-left: 0;
        margin-bottom: 24px;
    }

    body.sidebar-collapsed .sidebar .brand-logo-container {
        margin: 0 !important;
    }

    body.sidebar-collapsed .sidebar .nav-link {
        justify-content: center;
        padding: 12px;
        border-radius: 8px;
    }

    body.sidebar-collapsed .sidebar .nav-link-content {
        justify-content: center;
        gap: 0;
    }

    body.sidebar-collapsed .sidebar .nav-link.active {
        border-left: 3px solid var(--accent);
        border-radius: 8px;
    }

    body.sidebar-collapsed .sidebar .user-profile-bar {
        justify-content: center;
        padding: 8px;
        background-color: transparent;
        border-color: transparent;
    }

    body.sidebar-collapsed .sidebar .sidebar-footer-icons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* Welcome Sub-Navigation (Tabs) */
.sub-nav-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
    padding-bottom: 0;
}

.sub-nav-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.sub-nav-tab:hover {
    color: white;
}

.sub-nav-tab.active {
    color: white;
    border-bottom-color: var(--accent);
}

/* Metric Cards Row */
.ocean-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.ocean-metric-card {
    background-color: #111218;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.ocean-metric-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.ocean-metric-icon-box i {
    font-size: 1.1rem;
}

.ocean-metric-info {
    flex-grow: 1;
    min-width: 0;
}

.ocean-metric-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.ocean-metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

/* Analysis Navigation Line */
.analysis-tabs {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.analysis-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s;
}

.analysis-tab:hover, .analysis-tab.active {
    color: white;
}

/* Tasas de Deteccion Progress Rails */
.sec-progress-container {
    margin-bottom: 18px;
}

.sec-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.sec-progress-rail {
    height: 6px;
    background-color: #171821;
    border-radius: 3px;
    overflow: hidden;
}

.sec-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Circular SVG Donut */
.donut-svg-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.donut-inner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Bottom Grid Layout (Anuncios & Sorteos) */
.bottom-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 25px;
}

.announcement-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.announcement-content {
    flex-grow: 1;
    min-width: 0;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.announcement-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.announcement-author {
    font-size: 0.75rem;
    font-weight: 600;
}

.announcement-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

.announcement-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Toggle Pill Buttons */
.pill-toggle-container {
    background-color: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 3px;
    display: inline-flex;
    gap: 4px;
}

.pill-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-toggle-btn.active {
    background-color: white;
    color: black;
}

/* Keyboard Shortcut Box */
.ctrl-k-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
    margin-top: 8px;
    overflow: hidden;
    display: none;
    animation: fadeIn 0.2s;
}

.ctrl-k-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.ctrl-k-item:last-child {
    border-bottom: none;
}

.ctrl-k-item:hover {
    background-color: rgba(255,255,255,0.03);
}

/* Popovers (Notifications, Language) */
.footer-popover {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 280px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.6);
    z-index: 100;
    padding: 15px;
    display: none;
    animation: slideUpFade 0.2s ease-out;
}

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

/* User Account Settings avatar upload & preview classes */
.profile-avatar-upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    background-color: var(--bg-dark);
    border: 1px solid var(--border);
    color: white;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.avatar-upload-btn:hover {
    background-color: var(--border-hover);
}

/* Background Bubbles Effect */
.bg-bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Behind main panels */
    pointer-events: none; /* User can click through */
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -120px;
    background-color: rgba(99, 102, 241, 0.05); /* Very subtle indigo */
    border-radius: 50%;
    animation: floatUp linear infinite;
    filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.bubble:nth-child(even) {
    background-color: rgba(139, 92, 246, 0.04);
}

.bubble:nth-child(3n) {
    background-color: rgba(6, 182, 212, 0.03);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-115vh) scale(1.3) translateX(60px);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (IPHONE & MOBILE FRIENDLY)
   ========================================================================== */

/* Mobile & Tablet Layout Adjustments */
@media (max-width: 1024px) {
    .ocean-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    html, body {
        height: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    /* Sidebar Drawer Layout */
    .sidebar {
        position: fixed !important;
        left: -260px !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        height: 100dvh !important;
        width: 250px !important;
        z-index: 1001 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5) !important;
        background-color: var(--bg-darker) !important;
        padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px !important;
    }

    body.sidebar-collapsed .sidebar {
        left: 0 !important;
    }

    /* Sidebar backdrop overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        animation: fadeInOverlay 0.2s ease-out;
    }

    body.sidebar-collapsed .sidebar-overlay {
        display: block !important;
    }

    /* Adjust main content layout when sidebar is hidden */
    .main-wrapper {
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
    }

    /* Top bar adjustments with iOS Safe Area support */
    .top-bar {
        padding: 0 16px !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        height: calc(68px + env(safe-area-inset-top, 0px)) !important;
    }

    .breadcrumb {
        font-size: 0.8rem !important;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Search bar layout on mobile */
    .search-nav-box {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        width: 160px !important;
        margin-left: auto;
    }

    .search-nav-box input {
        padding: 8px 12px 8px 32px !important;
        font-size: 0.8rem !important;
    }

    .search-nav-box input:focus {
        width: 180px !important;
    }

    .search-nav-shortcut {
        display: none !important;
    }

    /* Content wrapper */
    .content-container {
        padding: 16px !important;
    }

    /* Grid collapses */
    .grid-two-columns,
    .verdict-banner-row,
    .map-screenshot-grid,
    .detection-grid,
    .boot-sequence-grid,
    .accounts-three-columns,
    .bottom-dashboard-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Detection category sidebar should be horizontal list or simple layout on mobile */
    .detection-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .detection-sidebar {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px !important;
        scrollbar-width: none; /* Hide scrollbar for clean UI */
    }

    .detection-sidebar::-webkit-scrollbar {
        display: none;
    }

    .detection-cat-item {
        flex-shrink: 0;
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Ocean Metrics Grid */
    .ocean-metrics-grid {
        grid-template-columns: 1fr !important;
    }

    /* Adjust header info rows if they get squished */
    .header-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .header-title h1 {
        font-size: 1.6rem !important;
    }

    /* Tables, info rows overflow prevention */
    .info-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .info-value {
        word-break: break-all;
        text-align: right;
    }

    /* Modals & Popups responsiveness */
    .modal-content, .resources-panel, .support-modal-content {
        width: 92% !important;
        padding: 20px !important;
        margin: 20px auto !important;
    }

    /* Settings Avatar layout */
    .settings-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Auth Cards and turnstile */
    .auth-card, .cf-verification-card {
        width: 92% !important;
        padding: 24px 16px !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }

    .slider-verify-track {
        width: 100% !important;
        max-width: 270px;
    }

    /* Hide breadcrumb on very small screens to give search bar space */
    .breadcrumb {
        display: none !important;
    }

    /* Sub-nav tabs horizontal scroll if too many */
    .sub-nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 8px;
        padding-bottom: 4px;
    }

    .sub-nav-tab {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Privacy / TOS containers */
    .privacy-container {
        margin: 16px 8px !important;
        padding: 16px !important;
    }
    
    .privacy-container h1 {
        font-size: 1.6rem !important;
    }
}

/* Animated overlay helper */

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Web Detect Domain input styling */
.webdetect-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.webdetect-input-wrapper input {
    width: 100%;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px 0 38px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.webdetect-input-wrapper input:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.webdetect-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.25s ease;
}

.webdetect-input-wrapper input:focus + .search-icon {
    color: var(--accent);
}

/* User online/offline status indicator dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--success);
    opacity: 0.4;
    animation: statusPulse 2s infinite ease-in-out;
}

.status-dot.offline {
    background-color: var(--danger);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* === NEW SECTIONS STYLES === */

/* 1. Watchlist (Lista de Vigilancia) */
.wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wl-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.wl-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.wl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wl-player-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-badge {
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.wl-badge.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.wl-badge.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

.wl-badge.priority-low {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.25);
}

.wl-card-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.wl-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 4px;
}

.wl-meta-info {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 2. Mapamundi (Live Geographic Map) */
#leafletMapContainer {
    height: 600px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background-color: #0b0f19;
    overflow: hidden;
    z-index: 1;
}

/* Leaflet Popup Premium Dark Theme overrides */
.leaflet-popup-content-wrapper {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
}

.leaflet-popup-tip {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8 !important;
}

/* 3. Directorio de Cheats / Firmas */
.cheat-db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cheat-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 4. Toolbox (Centro de Control) */
.tool-step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.tool-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.tool-step-number {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    user-select: none;
}

/* 5. Audit Logs */
.audit-action-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.audit-badge-create { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.audit-badge-delete { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.audit-badge-config { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.audit-badge-watchlist { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.audit-badge-other { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; }

/* ============================================================
   THEMES AND CUSTOMIZATION
   ============================================================ */
body.theme-obsidian {
    --bg-dark: #090d16;
    --bg-darker: #0d1220;
    --card-bg: rgba(17, 24, 39, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.2);
}

body.theme-royal {
    --bg-dark: #0f0b18;
    --bg-darker: #160f22;
    --card-bg: rgba(26, 17, 43, 0.5);
    --border: rgba(168, 85, 247, 0.15);
    --border-light: rgba(168, 85, 247, 0.3);
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --accent-glow: rgba(168, 85, 247, 0.25);
}

body.theme-blue {
    --bg-dark: #050b14;
    --bg-darker: #07101e;
    --card-bg: rgba(10, 23, 44, 0.5);
    --border: rgba(6, 182, 212, 0.15);
    --border-light: rgba(6, 182, 212, 0.3);
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.25);
}

/* ============================================================
   COMMAND PALETTE MODAL
   ============================================================ */
.command-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.command-palette-overlay.active {
    display: flex;
    opacity: 1;
}

.command-palette-dialog {
    width: 600px;
    max-width: 90vw;
    background: var(--bg-darker);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px var(--accent-glow);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.25s ease;
}

.command-palette-overlay.active .command-palette-dialog {
    transform: translateY(0);
}

.command-palette-search {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.command-palette-search i {
    color: var(--accent);
    font-size: 1.25rem;
}

.command-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
}

.command-palette-results {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.command-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-muted);
}

.command-palette-item:hover, .command-palette-item.selected {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.command-palette-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-palette-item i {
    font-size: 1rem;
    width: 24px;
    text-align: center;
}

.command-palette-shortcut {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    font-family: monospace;
}

.command-palette-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   PRINT AND PDF EXPORT STYLING
   ============================================================ */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    /* Hide layout panels */
    .sidebar, 
    .topbar, 
    .btn, 
    .modal-close,
    #iosToastContainer,
    .command-palette-overlay {
        display: none !important;
    }
    
    .content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .modal-overlay {
        position: relative !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        z-index: 1 !important;
    }
    
    .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        background: white !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        color: black !important;
    }
    
    /* PDF styling details */
    h3, span, div, td, th {
        color: black !important;
    }
    
    .data-table th {
        background: #f1f5f9 !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }
    
    .data-table td {
        border-bottom: 1px solid #e2e8f0 !important;
    }
}
