@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    
    --secondary: #14b8a6;
    --secondary-hover: #0d9488;
    --secondary-light: #ccfbf1;
    
    --accent: #ec4899;
    --accent-hover: #db2777;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;

    --bg-navbar: rgba(255, 255, 255, 0.85);

    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Palette */
[data-theme="dark"] {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --secondary: #2dd4bf;
    --secondary-hover: #14b8a6;
    --secondary-light: rgba(20, 184, 166, 0.15);
    
    --accent: #f472b6;
    --accent-hover: #ec4899;
    
    --danger: #f87171;
    --danger-hover: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);

    --bg-navbar: rgba(17, 24, 39, 0.85);

    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 25px rgba(129, 140, 248, 0.35);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-hover);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    transition: background-color var(--transition-normal);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    font-weight: 800;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.btn-icon {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}
.btn-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}



/* Main Layout Grid */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
    align-items: start;
}

/* Columns */
.app-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

/* Glass Cards */
.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--card-shadow), var(--glass-shadow);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* Wheel Container Card */
.wheel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    position: relative;
    min-height: 640px;
}

.wheel-header {
    width: 100%;
    margin-bottom: 24px;
}

.wheel-title {
    font-size: 1.8rem;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wheel-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Canvas Spinner Wrapper */
.wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    margin: 12px auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    transition: filter var(--transition-normal);
    display: block;
}

/* Glowing pointer */
.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -20%) rotate(180deg);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--accent);
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -5px;
    width: 10px;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Wheel Buttons */
.wheel-controls {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), var(--glow-shadow);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-danger:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Input Fields */
.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-align: left;
}

.input-text {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.input-text:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: var(--bg-secondary);
}

.input-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Control Panel Section */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Roster / Roster Picker UI */
.roster-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.roster-select-wrapper {
    flex: 1;
    position: relative;
}

.input-select {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition-fast);
}
.input-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.roster-select-wrapper::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Name list status details */
.list-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Name Items List */
.names-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    margin-bottom: 16px;
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    animation: fadeIn 0.2s ease;
}
.name-item:last-child {
    border-bottom: none;
}
.name-item:hover {
    background: var(--bg-secondary);
}

.name-text {
    font-weight: 500;
}

.name-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}
.name-delete-btn:hover {
    color: var(--danger);
    background: var(--danger-light);
}

/* empty state */
.list-empty-state {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Quick Settings Row Options */
.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.settings-option:last-child {
    margin-bottom: 0;
}

/* Beautiful Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

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

/* History list styling */
.history-container {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border-left: 3px solid var(--secondary);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Save / Add custom roster Modal & elements */
.roster-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Confetti Overlay */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

/* Custom Alert / Result Modal Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Content Box */
.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    text-align: center;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.winner-announcement {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.winner-display {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 16px 0 24px 0;
    word-break: break-word;
    animation: pulseGlow 1.5s infinite;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Fullscreen Mode elements */
body.fullscreen {
    overflow: hidden;
}

body.fullscreen .navbar, 
body.fullscreen .sidebar-column,
body.fullscreen .article-section,
body.fullscreen footer {
    display: none !important;
}

body.fullscreen .main-wrapper {
    grid-template-columns: 1fr;
    height: 100vh;
    margin: 0;
    padding: 20px;
}

body.fullscreen .wheel-card {
    height: 100%;
    border: none;
    background: var(--bg-primary);
    justify-content: center;
}

body.fullscreen .wheel-wrapper {
    max-width: 70vh;
}

/* Exit Fullscreen Button */
.exit-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: none;
}
body.fullscreen .exit-fullscreen-btn {
    display: flex;
}

/* SEO Info Article Content styling */
.article-section {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.rich-content {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
}

.rich-content h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.rich-content h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.rich-content p {
    margin-bottom: 16px;
}

.rich-content ul, .rich-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.rich-content li {
    margin-bottom: 8px;
}

/* Beautiful Accordions for SEO FAQ */
.faq-container {
    margin-top: 24px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-trigger:hover {
    background-color: var(--bg-primary);
}

.faq-icon {
    font-size: 0.85rem;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-content-inner {
    padding: 0 24px 20px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer style */
.footer {
    margin-top: auto;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    transition: background-color var(--transition-normal);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
}
.footer-links a:hover {
    color: var(--primary);
}

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

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(99, 102, 241, 0);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .app-column {
        display: contents;
    }
    
    .wheel-card {
        order: 1;
    }
    
    .sidebar-column {
        position: static;
        order: 2;
    }
    
    .article-section {
        order: 3;
        margin-top: 24px;
        border-top: 1px solid var(--border-color);
        padding-top: 24px;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .main-wrapper {
        gap: 16px;
        margin-top: 16px;
    }
    
    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .wheel-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 18px;
    }
    
    .wheel-controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* Custom Additions - Slider & Count Badges */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    margin-top: 6px;
    transition: background var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: var(--primary-hover);
}

.pick-count-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
}
[data-theme="dark"] .pick-count-badge {
    background: rgba(99, 102, 241, 0.25);
    color: var(--primary);
}

/* Multi-Wheel Layout Support */
.wheels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
}

.wheel-wrapper-instance {
    flex: 1 1 280px;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-normal);
}

.wheel-wrapper-instance:hover {
    transform: translateY(-2px);
}

.wheel-instance-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.wheel-wrapper-canvas-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-canvas-element {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.15));
    cursor: pointer;
    transition: transform 0.2s;
}

.wheel-canvas-element:hover {
    transform: scale(1.02);
}

.spin-single-btn {
    width: 100%;
    margin-top: 8px;
}

/* Wheel Tabs styling */
.wheel-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 12px;
    padding-bottom: 4px;
}

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

.wheel-tab-button {
    padding: 6px 12px;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wheel-tab-button:hover {
    background: var(--bg-primary);
    color: var(--primary);
}

.wheel-tab-button.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    margin-bottom: -6px;
}

.wheel-tab-add {
    color: var(--secondary);
    font-weight: 700;
}

/* Active Wheel Card Highlight */
.wheel-wrapper-instance.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.18), var(--card-shadow);
    transform: scale(1.015);
}

/* Layout Selector Styling */
.layout-toggle-container {
    display: inline-flex;
    gap: 6px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 12px;
}

.layout-toggle-container button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.layout-toggle-container button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* SEO Article Custom Layout & Images */
.article-content-layout {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.article-text-section {
    flex: 1;
}

.article-img {
    width: 160px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .article-content-layout {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: stretch;
    }
    
    .article-img {
        width: 100%;
        max-height: 160px;
    }
}
