:root {
    /* Lucille (Brewbot Style) Palette */
    --bg-primary: #050505;
    /* Neutral Deep Dark */
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #121212;
    --bg-glass: rgba(10, 10, 10, 0.7);

    --primary: #F99898;
    /* Lucille Pink */
    --primary-hover: #faacac;
    --primary-glow: rgba(249, 152, 152, 0.4);

    --secondary: #d8c4b0;
    /* Retaining some warmth from Brewbot or neutral beige */
    --accent: #f472b6;
    /* Pink accent */

    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-muted: #a1a1aa;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 152, 152, 0.5);

    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --danger: #ef4444;
    --success: #22c55e;

    /* Typography */
    --font-heading: 'Lexend', sans-serif;
    --font-body: 'Lexend', sans-serif;
    --font-mono: 'GeistMono', 'Courier New', monospace;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.glass-button {
    background: rgba(249, 152, 152, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary);
    color: var(--primary);
    /* Text color matches primary for ghost button style */
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(249, 152, 152, 0.2);
    box-shadow: 0 0 15px var(--primary-glow);
    color: #fff;
    transform: translateY(-2px);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 152, 152, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 0 rgba(249, 152, 152, 0.2);
    }
}

.animate-enter {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: var(--primary-hover);
    background: rgba(10, 10, 10, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(249, 152, 152, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 0;
}

/* Sidebar Styling Update */
.sidebar {
    width: 280px;
    background: rgba(5, 5, 5, 0.85);
    /* Slightly more opaque than nav but matching tone */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    /* Matches landing nav border */
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-item {
    font-family: var(--font-heading);
    margin: 0.25rem 1rem;
    border-radius: 12px;
    border-left: none;
    /* Removing old style */
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(249, 152, 152, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.logout-btn {
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.select-input {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    min-width: 250px;
    position: relative;
    z-index: 10;
    -webkit-appearance: menulist;
    appearance: menulist;
    touch-action: manipulation;
    cursor: pointer;
}

.presence-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
}

.presence-dot.offline {
    background: var(--danger);
}

.invite-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Content Sections */
.content-sections {
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.stat-icon,
.stat-icon i {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

/* Music Player */
.music-player {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.now-playing {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.track-artwork {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
}

.track-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.track-artist {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.track-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.control-btn.large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 2rem;
}

.volume-control input[type="range"] {
    width: 150px;
}

/* Queue */
.queue-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.queue-container h3 {
    margin-bottom: 1rem;
}

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

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s;
}

.queue-item:hover {
    background: var(--bg-primary);
    transform: translateX(5px);
}

.queue-number {
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 30px;
}

.queue-title {
    flex: 1;
    font-weight: 600;
}

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

/* Whitelist */
.whitelist-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.whitelist-card h3 {
    margin-bottom: 0.5rem;
}

.whitelist-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.input-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.status-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.status-message.success {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    display: block;
}

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

/* Settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    transition: 0.3s;
    border-radius: 30px;
}

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

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

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

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    pointer-events: all;
}

.loading-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Custom Range Sliders */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Firefox overrides */
input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-actions {
        flex-wrap: wrap;
    }

    .select-input {
        min-width: 200px;
    }

    .volume-control {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .player-controls {
        flex-wrap: wrap;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    .dashboard-header,
    header {
        position: relative;
        z-index: 5;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .select-input {
        width: 100%;
        min-width: unset;
        min-height: 44px;
        font-size: 16px;
        z-index: 10;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    /* Music Player Mobile */
    .now-playing {
        flex-direction: column;
        text-align: center;
    }

    .track-artwork {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .track-title {
        font-size: 1.25rem;
    }

    .player-controls {
        gap: 0.75rem;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }

    .control-btn.large {
        width: 56px;
        height: 56px;
    }

    .volume-control {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Forms Mobile */
    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
    }

    /* Settings Mobile */
    .setting-group {
        padding: 1rem;
    }

    /* Queue Mobile */
    .queue-item {
        padding: 0.75rem;
    }

    /* Toast Mobile */
    .toast-container {
        top: auto;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .toast {
        width: 100%;
    }

    /* Whitelist Card Mobile */
    .whitelist-card {
        padding: 1rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }

    .header-content h1 {
        font-size: 1.25rem;
    }

    .stat-card {
        gap: 1rem;
    }

    .stat-icon,
    .stat-icon i {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .music-player {
        padding: 1rem;
    }

    .track-artwork {
        width: 80px;
        height: 80px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn.large {
        width: 48px;
        height: 48px;
    }
}

/* Custom Checkbox - Enhanced */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper:hover .custom-checkbox {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.custom-checkbox,
.channel-checkbox,
.role-checkbox,
.module-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    background: var(--bg-tertiary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover,
.channel-checkbox:hover,
.role-checkbox:hover,
.module-checkbox:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.custom-checkbox:checked,
.channel-checkbox:checked,
.role-checkbox:checked,
.module-checkbox:checked {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-color: transparent;
}

.custom-checkbox:checked::after,
.channel-checkbox:checked::after,
.role-checkbox:checked::after,
.module-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.custom-checkbox:focus,
.channel-checkbox:focus,
.role-checkbox:focus,
.module-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.custom-checkbox:disabled,
.channel-checkbox:disabled,
.role-checkbox:disabled,
.module-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Module Toggle Switch - Enhanced */
.module-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.module-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    border-radius: 28px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.module-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.module-toggle input:checked+.slider {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), 0 8px 16px rgba(99, 102, 241, 0.3);
}

.module-toggle input:checked+.slider:before {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.module-toggle input:focus+.slider {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

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

/* Module Card Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .module-grid {
        grid-template-columns: 1fr;
    }
}

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

.module-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.module-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.module-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.module-card-title i {
    color: var(--primary);
}

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

/* Action Select Dropdown */
.action-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-select:hover {
    border-color: var(--primary);
}

.action-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}