/* EsportBot Dashboard - Main Stylesheet */

:root {
    /* Modern Color Palette - Inspired by MEE6 */
    --primary-color: #5865F2;        /* Discord Purple-Blue */
    --primary-dark: #4752C4;         /* Darker purple-blue */
    --primary-light: #7289DA;        /* Lighter purple-blue */
    --accent-color: #9B84F4;         /* Purple accent */
    --accent-dark: #7B68EE;          /* Darker purple */
    --purple: #9B84F4;               /* Purple for highlights */
    --purple-dark: #7B68EE;          /* Darker purple */
    
    --secondary-color: #2C2F33;      /* Dark grey */
    --secondary-light: #36393F;      /* Lighter dark grey */
    --danger-color: #ED4245;         /* Red for errors */
    --warning-color: #FAA61A;        /* Orange for warnings */
    --success-color: #3BA55D;        /* Green for success */
    --info-color: #5865F2;           /* Blue for info */
    
    /* Background Colors - Modern Dark Theme */
    --bg-dark: #1E1F22;              /* Main dark background */
    --bg-darker: #0E0F12;            /* Darker background */
    --bg-card: #2B2D31;              /* Card background */
    --bg-card-hover: #36393F;        /* Card hover */
    --bg-glass: rgba(43, 45, 49, 0.8);
    --bg-glass-hover: rgba(54, 57, 63, 0.9);
    --bg-sidebar: #1E1F22;           /* Sidebar background */
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B9BBBE;
    --text-muted: #72767D;
    --text-accent: #9B84F4;
    
    /* Border & Effects */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(91, 133, 242, 0.2);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(91, 133, 242, 0.15);
    --shadow-accent: 0 0 30px rgba(155, 132, 244, 0.2);
    
    /* Gradients - Modern Theme */
    --gradient-primary: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    --gradient-accent: linear-gradient(135deg, #9B84F4 0%, #7B68EE 100%);
    --gradient-secondary: linear-gradient(135deg, #2B2D31 0%, #36393F 100%);
    --gradient-bg: linear-gradient(135deg, #0E0F12 0%, #1E1F22 50%, #2B2D31 100%);
    --gradient-card: linear-gradient(135deg, rgba(43, 45, 49, 0.95) 0%, rgba(30, 31, 34, 0.95) 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    /* Background Colors - Light Theme */
    --bg-dark: #F8F9FA;              /* Main light background */
    --bg-darker: #FFFFFF;            /* White background */
    --bg-card: #FFFFFF;              /* Card background */
    --bg-card-hover: #F0F1F3;        /* Card hover */
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-glass-hover: rgba(240, 241, 243, 0.95);
    --bg-sidebar: #F5F5F6;           /* Light gray sidebar background */
    
    /* Text Colors */
    --text-primary: #1A1B1E;
    --text-secondary: #4E5058;
    --text-muted: #6E7178;
    --text-accent: #5865F2;
    
    /* Border & Effects */
    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(91, 133, 242, 0.15);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(91, 133, 242, 0.1);
    --shadow-accent: 0 0 30px rgba(155, 132, 244, 0.15);
    
    /* Gradients - Light Theme */
    --gradient-primary: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    --gradient-accent: linear-gradient(135deg, #9B84F4 0%, #7B68EE 100%);
    --gradient-secondary: linear-gradient(135deg, #FFFFFF 0%, #F0F1F3 100%);
    --gradient-bg: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 50%, #FFFFFF 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
}

/* Light theme background pattern */
[data-theme="light"] body::before {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(91, 133, 242, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(155, 132, 244, 0.02) 0%, transparent 50%);
}

/* Ensure success color (green) stays the same in light theme for enabled modules */
[data-theme="light"] {
    --success-color: #3BA55D;  /* Keep green for enabled modules */
}

/* Light theme top header text - ensure black text */
[data-theme="light"] .top-header {
    background: var(--bg-sidebar);
    color: var(--text-primary);
}

[data-theme="light"] .server-selector-header {
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234E5058' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

[data-theme="light"] .header-btn {
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .header-btn:hover {
    color: white;
    border-color: var(--primary-color);
}

[data-theme="light"] .header-user-name {
    color: var(--text-primary);
}

[data-theme="light"] .header-user-role {
    color: var(--text-secondary);
}

/* Light theme sidebar link adjustments */
[data-theme="light"] .sidebar-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

[data-theme="light"] .sidebar-link.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Light theme sidebar submenu adjustments */
[data-theme="light"] .sidebar-submenu-link {
    color: var(--text-secondary);
}

[data-theme="light"] .sidebar-submenu-link.enabled {
    color: var(--text-primary);
}

/* Keep enabled module icons green in light theme */
[data-theme="light"] .sidebar-submenu-link.enabled .sidebar-submenu-icon {
    color: var(--success-color) !important;
}

[data-theme="light"] .sidebar-submenu-link.disabled .sidebar-submenu-icon {
    color: var(--text-muted);
}

/* Light theme scrollbar */
[data-theme="light"] .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .sidebar-nav {
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(91, 133, 242, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(155, 132, 244, 0.03) 0%, transparent 50%);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-darker);
}

/* Sidebar */
.sidebar {
    width: 312px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-sidebar);
    min-height: 72px;
    box-sizing: border-box;
}

.sidebar-logo {
    height: 32px;
    width: auto;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-md) 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Dark scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Dark scrollbar for Chrome/Edge/Safari */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    margin: 0 var(--spacing-md);
    border-radius: var(--radius-md);
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-submenu-link i {
    width: 18px;
    text-align: center;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Submenu Styles */
.sidebar-submenu {
    display: block;
    background: transparent;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}

.sidebar-submenu.expanded {
    display: block;
}

.sidebar-submenu-category {
    margin-bottom: 1rem;
}

.sidebar-submenu-category-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem 0.25rem 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-link.has-submenu {
    position: relative;
}

.sidebar-link.has-submenu::after {
    content: '';
    display: none;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    position: relative;
    white-space: nowrap;
}

.sidebar-submenu-link.enabled {
    color: var(--text-primary);
}

.sidebar-submenu-link.enabled .sidebar-submenu-icon {
    color: var(--success-color);
}

.sidebar-submenu-link.disabled .sidebar-submenu-icon {
    color: var(--text-muted);
}

.sidebar-submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-submenu-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    padding-left: 3rem;
}

.sidebar-submenu-link:hover::before {
    transform: scaleY(1);
}

.sidebar-submenu-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-submenu-link.active::before {
    transform: scaleY(1);
}

.sidebar-submenu-link i,
.sidebar-submenu-icon {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: var(--bg-card);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Sidebar footer styles removed - user info moved to header */

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: 312px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Top Header */
.top-header {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
    box-sizing: border-box;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

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

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.server-selector-header {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12'%3E%3Cpath fill='%23b9bbbe' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.5rem;
    position: relative;
    z-index: 101;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.header-btn:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.header-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
    overflow: hidden;
}

.header-user-avatar .user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.header-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.header-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--danger-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-logout-btn:hover {
    background: rgba(237, 66, 69, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--bg-darker);
}

/* Notification Dropdown */
.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.show {
    display: flex;
    flex-direction: column;
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark);
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.notification-mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-mark-all-read:hover {
    background: var(--bg-card);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

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

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-item-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.notification-item-message {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-item-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
    text-align: center;
}

.notification-view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-view-all:hover {
    text-decoration: underline;
}

.notification-loading {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Selected Server Display */
.selected-server-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-glass);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.selected-server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.selected-server-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Navigation (old - keep for non-authenticated) */
.navbar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

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

.server-selector-wrapper {
    position: relative;
}

.server-selector {
    padding: 0.5rem 2rem 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12'%3E%3Cpath fill='%23b9bbbe' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    transition: all 0.2s;
}

.server-selector:hover {
    border-color: var(--primary-color);
}

.server-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-xl);
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

.flash-success {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.flash-error {
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.flash-info {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    object-fit: contain;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer code {
    background: var(--bg-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
    text-decoration: none;
    color: white;
}

.btn-discord i {
    font-size: 1.25rem;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Dashboard */
.dashboard-container {
    animation: fadeIn 0.3s ease-in;
}

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

.dashboard-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.dashboard-header h1 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.25rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.dashboard-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.server-badge:hover {
    border-color: var(--border-glow);
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.server-badge i {
    color: var(--accent-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-glass-hover);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover .stat-icon::before {
    opacity: 1;
}

.stat-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.stat-green {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.1) 100%);
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.stat-orange {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(255, 184, 0, 0.1) 100%);
    color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.1);
}

.stat-red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.stat-purple {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2) 0%, rgba(123, 44, 191, 0.1) 100%);
    color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.1);
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modules Section */
.modules-section {
    margin-top: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

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

/* Modules Section */
.modules-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
}

.search-container {
    position: relative;
    flex-shrink: 0;
}

.module-search {
    width: 300px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.module-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.module-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    background: var(--bg-card-hover);
}

.module-enabled {
    border-left: 3px solid var(--success-color);
}

.module-disabled {
    border-left: 3px solid var(--text-muted);
    opacity: 0.85;
}

.module-header-new {
    margin-bottom: 1rem;
}

.module-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.module-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.module-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: rgba(237, 66, 69, 0.2);
    color: #ED4245;
    border: 1px solid rgba(237, 66, 69, 0.3);
}

.badge-free {
    background: rgba(59, 165, 93, 0.2);
    color: #3BA55D;
    border: 1px solid rgba(59, 165, 93, 0.3);
}

.badge-standard {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary-color);
}

.badge-new {
    background: rgba(87, 242, 135, 0.15);
    color: var(--success-color);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(59, 165, 93, 0.2);
    color: #3BA55D;
    border: 1px solid rgba(59, 165, 93, 0.3);
}

.badge-disabled {
    background: rgba(114, 118, 125, 0.2);
    color: #72767D;
    border: 1px solid rgba(114, 118, 125, 0.3);
}

.module-body {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.module-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.module-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.module-footer-new {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-module-settings {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-module-settings:hover {
    background: #c03537;
    transform: translateY(-1px);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Theme Toggle with Icons */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    flex: 1;
    justify-content: center;
}

.theme-option:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.theme-option.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.theme-option i {
    font-size: 1.125rem;
}

.theme-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 26px;
}

.theme-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.theme-toggle-switch input:checked + .theme-toggle-slider {
    background-color: var(--primary-color);
}

.theme-toggle-switch input:checked + .theme-toggle-slider:before {
    transform: translateX(24px);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: #000;
}

.btn-success:hover:not(:disabled) {
    background: #4dd877;
}

.btn-danger {
    background: linear-gradient(135deg, #FF3366 0%, #E82E5A 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Settings */
.settings-section {
    margin-top: 2rem;
}

.settings-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.settings-card h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.config-display {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    overflow-x: auto;
}

.config-display pre {
    margin: 0;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.settings-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--warning-color);
}

/* License Management */
.license-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.license-active {
    border-left: 4px solid var(--success-color);
}

.license-inactive {
    border-left: 4px solid var(--danger-color);
}

.license-none {
    border-left: 4px solid var(--text-muted);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.license-header h2 {
    margin: 0;
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--bg-dark);
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

.license-warning {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(254, 231, 92, 0.1);
    border: 1px solid var(--warning-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--warning-color);
}

/* Pricing Section */
.pricing-section {
    margin-top: 3rem;
}

.pricing-section h2 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge-featured {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--success-color);
}

/* Server Selection */
.server-selection-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.server-selection-card h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.server-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
}

.server-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    background: var(--bg-card-hover);
}

.server-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.server-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.server-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.no-servers {
    padding: 2rem;
    color: var(--text-secondary);
}

.add-server-form {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.add-server-form h3 {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Settings Page */
.settings-form {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.settings-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section-header p {
    color: var(--text-secondary);
    margin: 0;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item label i {
    color: var(--primary-color);
    width: 20px;
}

.setting-item input[type="text"],
.setting-item input[type="number"] {
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
}

.setting-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.setting-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    color: var(--text-primary);
    user-select: none;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-featured {
        transform: none;
    }
    
    .license-info-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
    
    .announcements-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Universal Module Page Styles */
.module-page {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.module-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

/* Module Header Banner Support */
.module-header-banner {
    padding: 2rem 2rem 2.5rem 2rem;
    margin: 0 0 2.5rem 0;
    border-bottom: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 200px;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Keep existing flex layout from inline styles (justify-content: space-between) */
    /* This ensures text stays left, button stays right */
    /* Banner images are lazy-loaded via JavaScript for better performance */
    will-change: background-image;
    content-visibility: auto;
}

/* Dark overlay for text readability - lighter for more vibrant image */
.module-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 15, 18, 0.55) 0%,
        rgba(30, 31, 34, 0.45) 50%,
        rgba(43, 45, 49, 0.35) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above overlay */
.module-header-banner > * {
    position: relative;
    z-index: 1;
}

/* Align enabled switch with h1 text */
.module-header-banner > div:last-child {
    padding-top: 0.75rem; /* Match h1 margin-bottom for alignment */
}

/* Responsive banner sizing */
@media (max-width: 768px) {
    .module-header-banner {
        min-height: 150px;
        padding: 1.5rem 1.5rem 2rem 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Banner images are lazy-loaded via JavaScript (see static/js/shared/banner_loader.js) */
/* This prevents blocking page render and improves initial load performance */

/* Smooth fade-in animation when banner loads */
.module-header-banner {
    transition: opacity 0.3s ease-in-out;
}

.module-header-banner:not(.banner-loaded) {
    opacity: 0.95; /* Slight transparency before image loads */
}

.module-header-banner.banner-loaded {
    opacity: 1;
}

.module-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    z-index: 2;
}

.module-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.module-header h1 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.25rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.module-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.module-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.module-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.module-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

.module-section-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.module-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.module-section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.module-section-header h2 i {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.module-section-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.75rem;
    line-height: 1.6;
    font-weight: 400;
}

.module-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.module-card:hover::after {
    left: 100%;
}

.module-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.module-card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    min-height: 90px; /* Ensure consistent header height (title + badges) */
}

.module-icon-wrapper {
    flex-shrink: 0;
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(88, 101, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.module-header-content {
    flex: 1;
    min-width: 0;
}

.module-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

/* Card title - always 2 lines with truncation */
.module-card-header h3.module-card-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 3em; /* Ensure always 2 lines (1.5em per line * 2) */
    align-items: flex-start; /* Override flex alignment for webkit-box */
    gap: 0; /* Remove gap for webkit-box */
}

.module-card-body {
    margin-bottom: 1rem;
    min-height: 48px; /* Ensure consistent body height (2 lines of text with line-height 1.6) */
    max-height: 48px; /* Lock to 2 lines */
}

/* Create form and Settings tab - override card constraints for form content */
#tab-create .module-card-body,
#tab-settings .module-card-body {
    min-height: auto;
    max-height: none;
    margin-bottom: 0;
}

#tab-create .module-card-header,
#tab-settings .module-card-header {
    min-height: auto;
}

.module-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.module-card-footer small {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ========================================
   REUSABLE CARD COMPONENTS (Based on Announcements)
   ======================================== */

/* Generic card actions (reusable across modules) */
.module-card-actions .btn-sm:not(.btn-success) {
    padding: 0 !important;
    min-width: 32px !important;
    max-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Icon-only action buttons (Edit, Archive, etc.) */
.module-card-actions .btn-sm.btn-icon-action:not(.btn-success):not(.btn-danger):not(.btn-warning) {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: var(--bg-dark);
    color: var(--text-secondary);
}

.module-card-actions .btn-sm.btn-icon-action:not(.btn-success):not(.btn-danger):not(.btn-warning):hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

/* Warning (orange) button */
.module-card-actions .btn-sm.btn-warning {
    background: var(--warning-color);
    color: white;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.module-card-actions .btn-sm.btn-warning:hover:not(:disabled) {
    background: #E6941A;
    transform: translateY(-1px);
}

/* Danger (red) button */
.module-card-actions .btn-sm.btn-danger {
    background: var(--danger-color);
    color: white;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.module-card-actions .btn-sm.btn-danger:hover:not(:disabled) {
    background: #E82E5A;
    transform: translateY(-1px);
}

/* Success (green) button - can have text, same height as other buttons */
.module-card-actions .btn-sm.btn-success {
    background: var(--success-color);
    color: white;
    height: 32px !important;
    min-width: 100px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 1.25rem 0 1rem !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    gap: 0.375rem !important;
}

.module-card-actions .btn-sm.btn-success:hover:not(:disabled) {
    background: #2F9451;
    transform: translateY(-1px);
}

/* Card footer with meta information */
.module-card-footer-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-card-meta-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-card-meta-item.muted {
    color: var(--text-muted);
}

.module-card-meta-item i {
    font-size: 0.75rem;
}

/* Text clamping utilities (reusable) */
.text-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.text-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Generic badge styles (extension of existing badges) */
.module-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.module-badge.badge-bordered {
    background: transparent !important;
    border: 1px solid currentColor;
}

/* Card footer layout (for action buttons + meta) */
.module-card-footer-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    align-items: flex-start;
}

.module-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.module-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.module-empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Legacy support - map old classes to new ones for backward compatibility */
.announcements-actions,
.self-service-actions {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Map old announcement classes to new module classes */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.announcement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.announcement-card:hover::after {
    left: 100%;
}

.announcement-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-glass-hover);
}

.announcement-header,
.announcement-body,
.announcement-footer {
    /* Use module-card styles */
}

.announcement-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Map settings-section to module-section for voice channels */
.settings-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.settings-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.settings-section-header h2 i {
    color: var(--primary-color);
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.announcement-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.announcement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.announcement-card:hover::after {
    left: 100%;
}

.announcement-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-glass-hover);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.announcement-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-plain {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary-color);
}

.badge-embed {
    background: rgba(87, 242, 135, 0.15);
    color: var(--success-color);
}

/* Badge status styles (saved/published) */
.badge-status.badge-saved {
    background: rgba(114, 137, 218, 0.15);
    color: #7289DA;
}

.badge-status.badge-published {
    background: rgba(59, 165, 93, 0.15);
    color: #3BA55D;
}

/* Bordered badges for recurring/scheduled */
.badge-bordered {
    background: transparent !important;
    border: 1px solid currentColor;
}

.badge-recurring.badge-bordered {
    color: #7289DA;
}

.badge-scheduled.badge-bordered {
    color: #FAA61A;
}

/* Text clamping for 2-line preview */
.announcement-preview-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    max-height: calc(1.6em * 2);
}

/* Announcement card footer styles */
.announcement-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.announcement-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.announcement-channel-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-user-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.announcement-date-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Announcement-specific: Use generic module-card-actions */
.announcement-card-actions {
    /* Inherits from .module-card-actions */
}

.announcement-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background: var(--bg-dark);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.btn-icon.btn-danger:hover {
    background: var(--danger-color);
}

.announcement-body {
    margin-bottom: 1rem;
    min-height: 60px;
}

.announcement-preview {
    color: var(--text-secondary);
    line-height: 1.6;
}

.embed-preview {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.embed-preview-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.embed-preview-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.announcement-footer small {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal[style*="display: block"],
.modal[style*="display:flex"],
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.modal form {
    padding: 2rem;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Checkbox and Radio Button Labels - Side by Side */
.form-group label:has(input[type="checkbox"]),
.form-group label:has(input[type="radio"]) {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    cursor: pointer;
    padding: 0.5rem 0;
    user-select: none;
}

.form-group label:has(input[type="checkbox"]):hover,
.form-group label:has(input[type="radio"]):hover {
    color: var(--primary-light);
}

/* Checkbox and Radio Input Styling */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    margin: 0;
}

/* Radio Group - Horizontal Layout */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.radio-group label:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.radio-group label:has(input[type="radio"]:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Checkbox Group - Horizontal Layout */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.checkbox-group label:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.checkbox-group label:has(input[type="checkbox"]:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.embed-field-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto auto;
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
}

.embed-field-row input,
.embed-field-row textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.embed-field-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
    cursor: pointer;
}

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

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

/* Settings Page - Improved Design */
.settings-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.settings-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.server-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.server-stat {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.stat-value-server-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-value-server-id code {
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.help-link {
    text-align: right;
    margin-top: 1rem;
}

.help-link a {
    color: var(--danger-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.help-link a:hover {
    opacity: 0.8;
}

.channel-select,
.timezone-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12'%3E%3Cpath fill='%23b9bbbe' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.channel-select:focus,
.timezone-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.timezone-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.timezone-select {
    flex: 1;
}

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-height: 48px;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.role-tag span {
    user-select: none;
}

.role-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.role-remove:hover {
    background: var(--danger-color);
    color: white;
}

.role-input {
    flex: 1;
    min-width: 150px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.25rem;
}

.role-input:focus {
    outline: none;
}

.role-input::placeholder {
    color: var(--text-muted);
}

/* Activity Log Table */
.activity-table-container {
    overflow-x: auto;
}

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

.activity-table thead {
    background: var(--bg-dark);
    border-bottom: 2px solid var(--border-color);
}

.activity-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.activity-table tbody tr:hover {
    background: var(--bg-dark);
}

.activity-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.activity-icon {
    font-size: 0.5rem;
    color: var(--primary-color);
}

.activity-user {
    color: var(--danger-color);
    font-weight: 500;
}

.activity-action {
    color: var(--text-primary);
    font-weight: 500;
}

.activity-details {
    color: var(--text-muted);
}

.activity-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .settings-two-column {
        grid-template-columns: 1fr;
    }
    
    .server-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .server-info-grid {
        grid-template-columns: 1fr;
    }
    
    .timezone-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .activity-table {
        font-size: 0.85rem;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Welcome Page */
.welcome-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.welcome-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

.welcome-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.welcome-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.welcome-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.welcome-section h2 i {
    color: var(--primary-color);
}

.welcome-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.welcome-section > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.server-selection-section {
    margin-top: 1.5rem;
}

.modules-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.module-overview-card {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.module-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.module-overview-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.module-overview-content {
    flex: 1;
}

.module-overview-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.module-overview-content p {
    margin: 0 0 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.module-overview-badge {
    margin-top: 0.5rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.quick-link-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    background: var(--bg-card);
}

.quick-link-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-link-card span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .welcome-page {
        padding: 1rem;
    }
    
    .welcome-header {
        padding: 1.5rem;
    }
    
    .welcome-header h1 {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .modules-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    /* Module page responsive */
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .module-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .module-actions .btn {
        width: 100%;
    }
    
    .module-section {
        padding: 1.5rem;
    }
    
    .settings-two-column {
        grid-template-columns: 1fr;
    }
}

/* Voice Channels Settings Page */
.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 600;
}

.channel-select {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-picker-wrapper input[type="color"] {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-dark);
    padding: 2px;
    transition: all 0.2s;
}

.color-picker-wrapper input[type="color"]:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.color-picker-wrapper input[type="text"] {
    flex: 1;
}

/* Advanced Color Picker (MEE6-style) */
.advanced-color-picker-wrapper {
    position: relative;
    display: inline-block;
}

.color-picker-trigger {
    cursor: pointer;
}

.color-input-compact {
    transition: all 0.2s;
}

.color-input-compact:hover {
    border-color: var(--primary-color) !important;
    background: rgba(88, 101, 242, 0.05) !important;
}

.color-preview {
    transition: all 0.2s;
}

.color-preview:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.color-picker-trigger:hover .color-preview {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.color-picker-modal.show,
.color-picker-modal[style*="display: flex"] {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    animation: fadeIn 0.2s ease;
    pointer-events: auto;
}

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

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

.color-picker-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    width: 280px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: slideUp 0.2s ease;
}

.color-picker-dialog .color-picker-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

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

.color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.color-picker-header h3 {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
}

.color-picker-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.color-picker-close:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.color-picker-presets {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    flex-shrink: 0;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.color-picker-history {
    margin-bottom: 0.75rem;
}

.color-picker-history label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.color-history-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-history-swatch {
    width: 28px;
    height: 28px;
}

.color-picker-main {
    margin-bottom: 0.75rem;
}

.color-gradient-selector {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
    cursor: crosshair;
    margin-bottom: 0.5rem;
    background: 
        linear-gradient(to top, #000 0%, transparent 50%, #fff 100%),
        linear-gradient(to right, transparent 0%, hsl(240, 100%, 50%) 100%);
}

.color-selector-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    top: 50%;
    left: 50%;
}

.color-hue-slider {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(to right, 
        hsl(0, 100%, 50%), 
        hsl(60, 100%, 50%), 
        hsl(120, 100%, 50%), 
        hsl(180, 100%, 50%), 
        hsl(240, 100%, 50%), 
        hsl(300, 100%, 50%), 
        hsl(360, 100%, 50%));
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.hue-slider-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 0%;
    pointer-events: none;
}

.color-picker-value-input {
    margin-top: 0.75rem;
}

.color-value-toggle {
    transition: all 0.2s;
}

.color-value-toggle:hover {
    border-color: var(--primary-color) !important;
    background: rgba(88, 101, 242, 0.05) !important;
}

.color-value-toggle:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

/* Legacy support - keep old styles for backwards compatibility */
.color-picker-values {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.5rem;
}

.color-value-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-value-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.color-value-group input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: monospace;
}

.color-value-group input.color-hex {
    text-transform: uppercase;
}

/* Form Select Styling */
select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.5rem;
}

select optgroup {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 0;
}

select optgroup option {
    padding-left: 1.5rem;
    background: var(--bg-dark);
}

/* Dashboard Welcome Page */
.dashboard-welcome {
    animation: fadeIn 0.5s ease-in;
}

.welcome-hero {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.welcome-hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.welcome-hero-image {
    position: relative;
    flex-shrink: 0;
}

.bot-logo-large {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.welcome-hero-text {
    flex: 1;
}

.welcome-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.welcome-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-hero-subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

.welcome-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Quick Actions Section */
/* Server Insights Section */
.server-insights-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.insight-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.insight-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.insight-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.insight-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.insight-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.insight-stat-full {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.5rem 0;
}

.insight-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.insight-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.insight-online {
    color: var(--success-color);
}

.quick-actions-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quick-action-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.quick-action-card:hover::before {
    left: 100%;
}

.quick-action-card:hover {
    transform: translateY(-4px) translateX(4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--border-glow);
    background: var(--bg-glass-hover);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.quick-action-content {
    flex: 1;
}

.quick-action-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.quick-action-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.quick-action-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quick-action-card:hover .quick-action-arrow {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Responsive adjustments for dashboard welcome */
@media (max-width: 968px) {
    .welcome-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .welcome-hero-text h1 {
        font-size: 2.25rem;
    }
    
    .welcome-hero-actions {
        justify-content: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Tournament Manager Styles */
.tournament-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tournament-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tournament-info-item i {
    color: var(--accent-color);
    width: 18px;
}

.tournament-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.commands-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.command-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.command-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.command-name {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.command-name code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--primary-color);
}

.command-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Tournament View Modal */
.tournament-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tournament-view-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.tournament-view-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-view-section h3 i {
    color: var(--accent-color);
}

.tournament-view-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

.info-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.info-row span {
    color: var(--text-secondary);
}

.teams-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.team-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.team-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.team-members-count {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.team-members {
    margin-top: 0.75rem;
}

.team-members strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.team-members ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.team-members li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.team-members li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.team-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.team-info strong {
    color: var(--text-primary);
}

.modal-large {
    max-width: 1200px;
    width: 90%;
}

/* Badge colors for tournament status */
.badge-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.badge-info {
    background: rgba(0, 217, 255, 0.2);
    color: var(--info-color);
    border: 1px solid var(--info-color);
}

.badge-danger {
    background: rgba(255, 51, 102, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Ticket System Styles */
.panel-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.panel-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.panel-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.panel-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.panel-info-item code {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ticket-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

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

.ticket-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.ticket-id i {
    color: var(--primary-color);
}

.ticket-status {
    display: flex;
    align-items: center;
}

.ticket-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.ticket-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.ticket-info-item code {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.role-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.role-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* Moderation System Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.setting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.setting-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.setting-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.setting-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.action-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
}

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

.action-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.action-type i {
    color: var(--primary-color);
}

.action-id code {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.action-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.action-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.action-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.action-info-item code {
    background: rgba(0, 217, 255, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.action-reason {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.action-reason strong {
    color: var(--text-primary);
}

.action-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rule-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.rule-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.severity-levels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.severity-level {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.severity-level h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.severity-level h3::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}

.severity-level:nth-child(1) h3::before { background: var(--success-color); }
.severity-level:nth-child(2) h3::before { background: var(--info-color); }
.severity-level:nth-child(3) h3::before { background: var(--warning-color); }
.severity-level:nth-child(4) h3::before { background: var(--primary-color); }
.severity-level:nth-child(5) h3::before { background: var(--danger-color); }

/* Polls Module Styles */
.poll-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.poll-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.poll-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.poll-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.options-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.option-item {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-row input[type="text"] {
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.option-row input[type="color"] {
    height: 35px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.option-row input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.1);
}

/* Custom Commands Module Styles */
.command-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.command-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.command-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.command-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.form-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--bg-darker);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    font-size: 1rem;
}

.section-content {
    padding: 0 0.75rem;
}

.collapsible .section-content {
    display: block;
}

.embed-item, .response-item {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.embed-header, .response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.embed-header h4, .response-header h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.variable-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variable-item {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.variable-item code {
    background: var(--bg-card);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.variable-item p {
    color: var(--text-primary);
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.variable-item small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.var-example {
    color: var(--primary-color);
    font-weight: 600;
}

input[type="text"][pattern] {
    text-transform: lowercase;
}

/* Events & Calendar and Team Tool Styles */
.event-description, .team-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-info, .team-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.event-info-item, .team-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.event-info-item i, .team-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Levels Module Styles */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.setting-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.1);
}

.setting-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    color: white;
    font-size: 1.5rem;
}

.setting-content {
    flex: 1;
}

.setting-content h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.setting-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.reward-item i {
    color: var(--accent-color);
    width: 18px;
}

/* Games Module Styles */
.quiz-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.quiz-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quiz-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.quiz-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.giveaway-prize {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.giveaway-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.giveaway-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.giveaway-info-item i {
    color: var(--accent-color);
    width: 16px;
}

.question-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.question-header h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.option-row input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-row input[type="text"] {
    flex: 1;
}

.leaderboard-section {
    margin-bottom: 2rem;
}

.leaderboard-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.leaderboard-entry .rank {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 30px;
}

.leaderboard-entry .user {
    flex: 1;
    color: var(--text-primary);
}

.leaderboard-entry .score {
    color: var(--accent-color);
    font-weight: 600;
}

.leaderboard-entry .wins {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Stats Grid for Developer Portal */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-glow);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.stat-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.stat-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.stat-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Activity Table */
.activity-table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

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

.activity-table thead {
    background: var(--bg-dark);
}

.activity-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.activity-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.activity-table tbody tr:hover {
    background: var(--bg-dark);
}

.activity-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.badge-disabled {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

/* Modern Server Grid (MEE6-style) */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.license-server-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.license-server-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
    background: var(--bg-card-hover);
}

.license-server-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.license-server-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.license-server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.license-server-info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.license-server-info .server-id {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Modern Button Styles */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Universal Tab Navigation Component
   Reusable tab system for module pages
   ======================================== */

.module-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.module-tabs::-webkit-scrollbar {
    height: 4px;
}

.module-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.module-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.module-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    font-family: inherit;
}

.module-tab:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.module-tab.active {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.module-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px 2px 0 0;
}

.module-tab i {
    font-size: 1.125rem;
}

/* Search field in tab menu */
.module-tab-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0.5rem;
}

.module-tab-search input {
    transition: all var(--transition-base);
}

.module-tab-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
    width: 250px;
}

/* Green "Create" tab styling */

.module-tab-search input {
    transition: all var(--transition-base);
}

.module-tab-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
    width: 250px;
}

.module-tab.tab-create {
    background: var(--success-color);
    color: #FFFFFF;
    font-weight: 600;
    margin-left: 0;
}

.module-tab.tab-create:hover {
    background: #2d8f4f;
}

.module-tab.tab-create.active {
    background: #2d8f4f;
}

.module-tab.tab-create.active::after {
    background: rgba(255, 255, 255, 0.5);
}

/* Tab content panels */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Responsive tabs */
@media (max-width: 768px) {
    .module-tabs {
        gap: 0.25rem;
        padding: 0.375rem;
    }
    
    .module-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .module-tab i {
        font-size: 1rem;
    }
    
    .module-tab.tab-create {
        margin-left: 0.5rem;
    }
}
