/* Gamer Dashboard Base */
/* Body */
body {
    font-family: var(--font-sans), sans-serif;
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

a:hover {
    color: var(--gk-tint-blue);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    transition: var(--transition);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.highlight {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.ml-auto {
    margin-left: auto !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.custom-tooltip {
    position: fixed;
    background: var(--bg-tooltip);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    z-index: 1060;
    display: none;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    transform: translateX(-50%) translateY(-100%);
    font-weight: var(--font-medium);
}

.dashboard-nav .badge {
    background: color-mix(in srgb, var(--text-light) 20%, transparent);
    margin-left: 8px;
}

.dashboard-nav .nav-link {
    color: var(--text-light);
}

.dashboard-nav .nav-link:hover {
    color: var(--text-light);
}

.nav-link-btn.owner-btn {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--text-light);
}

.nav-link-btn.owner-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: linear-gradient(180deg, var(--gk-blue) 0%, var(--primary-dark) 100%);
    border-top: 3px solid var(--gk-green);
}

.logout-link {
    color: color-mix(in srgb, var(--text-light) 80%, transparent) !important;
    background: color-mix(in srgb, var(--danger) 20%, transparent) !important;
}

.logout-link:hover {
    background: var(--danger) !important;
    color: var(--text-light) !important;
}

.dashboard-sidebar.collapsed .logout-link:hover {
    background: color-mix(in srgb, var(--danger) 30%, transparent);
    transform: scale(1.08);
}

/* Notification Menu Styling */
.notifications-dropdown {
    padding: 0;
}

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

.dropdown-header h4 {
    font-size: 1rem;
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
}

.dropdown-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.notification-item.unread {
    background: var(--bg-primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.notification-content small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--primary);
    border-top: 1px solid var(--border-color);
}

/* Dashboard Specific Utilities */
.hidden-input {
    display: none !important;
}

.section-spacing {
    margin: 2em 0;
}

.badge-img-md {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.badge-img-lg {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.level-badge-section {
    margin-top: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dark Mode */
[data-theme="dark"] .dashboard-sidebar {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--gk-navy-soft) 100%);
}