/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #f5f5f5;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 60px;
    background: linear-gradient(90deg, #2d2d2d 0%, #3a3a3a 50%, #2d2d2d 100%);
    border-bottom: 1px solid #4a4a4a;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.logo a:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.logo i {
    font-size: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain-badge {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #00ff88;
    margin-left: 4px;
    padding: 1px 4px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.domain-badge i {
    font-size: 8px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #00ff88;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.nav-center {
    flex: 1;
    max-width: 300px;
    margin: 0 12px;
    min-width: 0;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border: 1px solid #5a5a5a;
    border-radius: 4px;
    color: #f5f5f5;
    font-size: 13px;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 6px;
}

.nav-right {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #4a4a4a, #5a5a5a);
    border-radius: 8px;
    border: 1px solid #6a6a6a;
    margin-right: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #f5f5f5;
}

.user-type {
    font-size: 12px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-weight: 600;
}

/* User type specific styling */
.user-type-broadcaster .user-type {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-type-moderator .user-type {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-type-subscriber .user-type {
    background: linear-gradient(45deg, #eb0400, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-type-viewer .user-type {
    background: linear-gradient(45deg, #9146ff, #b366ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User profile enhancements */
.user-profile {
    position: relative;
    transition: all 0.3s ease;
}

.user-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.user-type-broadcaster {
    border-left: 3px solid #ffd700;
    padding-left: 8px;
}

.user-type-moderator {
    border-left: 3px solid #ff6b35;
    padding-left: 8px;
}

.user-type-subscriber {
    border-left: 3px solid #eb0400;
    padding-left: 8px;
}

.user-type-viewer {
    border-left: 3px solid #9146ff;
    padding-left: 8px;
}

.nav-btn {
    background: none;
    border: none;
    color: #f5f5f5;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    transform: translateY(-1px);
}

.login-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.login-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
}

.logout-btn {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(45deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Main Container */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #4a4a4a;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.channel-item:hover {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    transform: translateX(4px);
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 14px;
    font-weight: 500;
    color: #f5f5f5;
    margin-bottom: 2px;
}

.channel-game {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 2px;
}

.channel-viewers {
    font-size: 12px;
    color: #a0a0a0;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Main Content */
.content {
    flex: 1;
    min-width: 0;
}

/* Featured Stream */
.featured-stream {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
    border: 1px solid #4a4a4a;
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.gradient-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 193, 7, 0.3) 25%,
        rgba(255, 165, 0, 0.2) 50%,
        rgba(218, 165, 32, 0.3) 75%,
        rgba(184, 134, 11, 0.4) 100%
    );
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.stream-thumbnail:hover .gradient-cover {
    opacity: 0.7;
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-thumbnail:hover .featured-video {
    transform: scale(1.02);
}

.featured-video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.stream-thumbnail:hover .featured-video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.live-badge {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.viewer-count {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.stream-info {
    padding: 20px;
}

.streamer-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.streamer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.streamer-details h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f5f5f5;
}

.streamer-name {
    font-size: 16px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.game-category {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(45deg, #4a4a4a, #5a5a5a);
    color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.2s;
}

.watch-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Categories */
.categories {
    margin-bottom: 32px;
}

.categories h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #4a4a4a;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.category-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.category-info {
    padding: 12px;
}

.category-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #f5f5f5;
}

.category-info p {
    font-size: 12px;
    color: #a0a0a0;
}

/* Live Channels */
.live-channels h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.channel-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #4a4a4a;
}

.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.channel-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.channel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.channel-video:not([src]) + .fallback-image {
    display: block;
}

.channel-thumbnail:hover .channel-video {
    transform: scale(1.05);
}

.video-overlay-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.channel-thumbnail:hover .video-overlay-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.channel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-thumbnail .live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.channel-thumbnail .viewer-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.channel-details {
    display: flex;
    gap: 12px;
    padding: 12px;
}

.channel-details .channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.channel-text {
    flex: 1;
    min-width: 0;
}

.channel-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #f5f5f5;
    line-height: 1.3;
}

.channel-text .channel-name {
    font-size: 13px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.channel-text .game-name {
    font-size: 12px;
    color: #a0a0a0;
    margin-bottom: 6px;
}

.watch-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.2s;
}

.watch-btn-small:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        padding: 16px;
    }
    
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 12px;
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-left {
        gap: 8px;
        order: 1;
        flex: 1;
    }

    .nav-center {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
        margin-top: 8px;
    }

    .nav-right {
        order: 2;
        gap: 4px;
    }

    .logo {
        font-size: 14px;
    }

    .logo i {
        font-size: 16px;
    }

    .logo span {
        display: none;
    }

    .logo .domain-badge {
        display: none;
    }

    .nav-links {
        gap: 6px;
        display: flex;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .search-input {
        padding: 6px 36px 6px 10px;
        font-size: 12px;
    }

    .search-btn {
        padding: 4px;
        right: 4px;
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .nav-btn span {
        display: none;
    }

    .user-profile {
        padding: 4px 8px;
        gap: 4px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
    }

    .user-name {
        font-size: 12px;
    }

    .user-type {
        font-size: 10px;
    }
    
    .main-container {
        flex-direction: column;
        padding: 16px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .channel-grid {
        grid-template-columns: 1fr;
    }
    
    .stream-thumbnail {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 8px;
        height: auto;
        min-height: 50px;
        gap: 4px;
    }

    .nav-left {
        gap: 4px;
    }

    .nav-center {
        margin-top: 4px;
    }

    .nav-right {
        gap: 2px;
    }

    .logo {
        font-size: 12px;
    }

    .logo i {
        font-size: 14px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 3px 6px;
        font-size: 11px;
    }

    .search-input {
        padding: 4px 32px 4px 8px;
        font-size: 11px;
    }

    .search-btn {
        padding: 3px;
        right: 3px;
    }

    .nav-btn {
        padding: 4px 6px;
        font-size: 11px;
    }

    .user-profile {
        padding: 3px 6px;
        gap: 3px;
    }

    .user-avatar {
        width: 20px;
        height: 20px;
    }

    .user-name {
        font-size: 11px;
    }

    .user-type {
        font-size: 9px;
    }
    
    .main-container {
        padding: 12px;
    }
    
    .streamer-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* Video Optimization and Mobile Styles */
@media (max-width: 768px) {
    .channel-video, .featured-video {
        object-fit: cover;
    }
    
    .video-overlay-hover, .featured-video-overlay {
        display: none; /* Hide hover effects on mobile */
    }
    
    .channel-thumbnail:hover .channel-video,
    .stream-thumbnail:hover .featured-video {
        transform: none; /* Disable hover transforms on mobile */
    }
}

/* Video loading states */
.channel-video, .featured-video {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-video.loaded, .featured-video.loaded {
    opacity: 1;
}

/* Video error fallback */
.channel-video[style*="display: none"] + .fallback-image,
.featured-video[style*="display: none"] + .fallback-image {
    display: block !important;
}

/* Video performance optimization */
.channel-video, .featured-video {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Enhanced video hover effects */
.channel-card:hover .channel-thumbnail::after,
.featured-stream:hover .stream-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.1));
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.channel-card:hover .channel-thumbnail::after,
.featured-stream:hover .stream-thumbnail::after {
    opacity: 1;
}

/* User Status Module Styles */
.user-status-module {
    width: 320px;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    border-left: 1px solid #4a4a4a;
    padding: 20px;
    overflow: visible;
    height: auto;
    max-height: calc(100vh - 60px);
    position: fixed;
    right: 0;
    top: 60px;
    z-index: 100;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.user-status-module.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #4a4a4a;
}

.status-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00ff88;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.offline-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
}

.current-user-section,
.online-users-section,
.all-users-section,
.user-stats-section {
    margin-bottom: 25px;
}

.current-user-section h4,
.online-users-section h4,
.all-users-section h4,
.user-stats-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-success {
    color: #00ff88 !important;
}

.user-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.user-status-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.user-status-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.user-status-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.user-status-name {
    font-weight: 600;
    color: #f5f5f5;
    font-size: 14px;
}

.user-status-type {
    font-size: 12px;
    color: #ffd700;
    text-transform: capitalize;
}

.user-status-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00ff88;
}

.online-users-list {
    height: auto;
    min-height: 200px;
    max-height: none;
    overflow: visible;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.all-users-list {
    max-height: none;
    overflow: visible;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.no-users-message,
.loading-users {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.database-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.db-btn {
    padding: 6px 12px;
    background: linear-gradient(45deg, #9146FF, #a855f7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.db-btn:hover {
    background: linear-gradient(45deg, #a855f7, #c084fc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}

.users-search {
    margin-bottom: 12px;
}

.users-search .search-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 12px;
}

.users-search .search-input:focus {
    outline: none;
    border-color: #9146FF;
    box-shadow: 0 0 0 2px rgba(145, 70, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User list items */
.user-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.user-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

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

.user-list-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-list-name {
    font-size: 13px;
    font-weight: 500;
    color: #f5f5f5;
}

.user-list-type {
    font-size: 11px;
    color: #ffd700;
    text-transform: capitalize;
}

.user-list-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

/* User Status Thumbnail */
.user-status-thumbnail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #9146FF, #a855f7);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    min-width: 80px;
    justify-content: center;
    position: relative;
}

.user-status-thumbnail:hover {
    background: linear-gradient(45deg, #a855f7, #c084fc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.3);
}

.thumbnail-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.thumbnail-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.thumbnail-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
}

.thumbnail-indicator .online-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
    border: 2px solid #2d2d2d;
}

/* Toggle button visibility */
#userStatusToggle {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .user-status-module {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .user-status-thumbnail {
        display: flex;
    }
    
    #userStatusToggle {
        display: flex;
    }
    
    .user-status-module {
        position: fixed;
        width: 280px;
        height: auto;
        max-height: calc(100vh - 60px);
        right: 0;
        top: 60px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
    }
    
    .user-status-module.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .online-users-list {
        height: auto;
        min-height: 200px;
        max-height: none;
        overflow: visible;
    }
    
    .main-container {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .user-status-thumbnail {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .thumbnail-header {
        font-size: 12px;
    }
    
    .thumbnail-count {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .user-status-module {
        width: 100%;
        height: auto;
        max-height: 100vh;
        top: 0;
        right: 0;
        transform: translateX(100%);
        border-left: none;
        border-top: none;
        padding: 20px;
        z-index: 1000;
        overflow: visible;
        opacity: 0;
        visibility: hidden;
    }
    
    .user-status-module.show {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .online-users-list {
        height: auto;
        min-height: 200px;
        max-height: none;
        overflow: visible;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .user-status-module {
        padding: 15px;
        overflow: visible;
    }
    
    .online-users-list {
        height: auto;
        min-height: 150px;
        max-height: none;
        overflow: visible;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .status-header h3 {
        font-size: 16px;
    }
    
    .current-user-section h4,
    .online-users-section h4,
    .user-stats-section h4 {
        font-size: 13px;
    }
} 

 