/* Bazaar Game - Common Styles */

/* Portal section titles - adjust for better spacing and sizing */
.prism-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.prism-section-title .material-symbols-outlined {
    margin-right: 0.5rem;
}

/* Active games list - add gap between cards and pointer cursor */
.prism-list-item.prism-clickable {
    cursor: pointer;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.prism-list-item.prism-clickable:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.prism-list-item.prism-clickable:last-child {
    margin-bottom: 0;
}

* { box-sizing: border-box; }

html {
    /* Disable pull-to-refresh and overscroll bounce in mobile Safari */
    overscroll-behavior: contain;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    /* Disable pull-to-refresh and overscroll bounce in mobile Safari */
    overscroll-behavior: contain;
}

.container {
    margin: 0 auto;
    padding: 0 1px 20px 1px;
    max-width: 699px;
}

/* Common border radius for game elements */
.game-radius {
    border-radius: 18px;
}

/* Game page headings - only apply to standalone game pages, not portal interface */
.container h1 {
    text-align: center;
    color: white;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.container .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.2em;
    margin-bottom: 40px;
}

/* Game Section Headers - for game content pages only */
.game-section-header {
    background: rgba(255,255,255,0.95);
    padding: 10px;
    margin: 0 0 10px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.game-section-header h2 {
    margin: 0;
    color: #333;
    font-size: 2em;
}

.game-section-header p {
    margin: 5px 0 0 0;
    color: #666;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Wares Card Grid - Responsive */
.wares-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Rate Card Grid - Responsive */
.rate-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Rate Card Styling (mobile-optimized button layout) */
.rate-card {
    background: #333;
    border: 2px solid #444;
    padding: 2px;
    width: 207px;
    max-width: 100%;
    height: 236px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* First rate card - remove bottom corners to connect with second card */
/* Disabled: rate cards are now in separate grid cells
#rate-cards-result > .rate-card:first-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
*/

/* Last rate card - remove top corners to connect with first card */
/* Disabled: rate cards are now in separate grid cells
#rate-cards-result > .rate-card:last-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
*/

/* Card number badge (position set inline: top right or bottom left) */
.rate-card-number {
    position: absolute;
    background: transparent;
    color: #999;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 10;
}

.rate-card-header {
    text-align: left;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    padding-left: 5px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.equation-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 5px;
}

.equation-row:last-child {
    margin-bottom: 0;
}

/* Trade side buttons (clickable areas for each trade direction) */
.trade-side {
    display: flex;
    align-items: center;
    gap: 6.5px;
    padding: 0 5px;
    border: none;
    background: #222;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    height: 44px;
}

.trade-side:active {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: scale(0.98);
}

.trade-side.left-side {
    flex: 0 1 45%;
    justify-content: space-between;
}

.trade-side.right-side {
    flex: 0 1 55%;
}

.arrow-btn {
    font-size: 20px;
    font-weight: bold;
    color: #666;  /* Gray arrows by default */
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
    align-self: center;
}

/* Hint states: gray (disabled) -> white (valid) -> green (optimal) */
.trade-side:not([disabled]) .arrow-btn {
    color: #e0e0e0;  /* Light gray when trade is valid */
}

.trade-side.hint-best .arrow-btn {
    color: #2ecc71;  /* Green for best/optimal trade */
}

.token-display {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-items: center;
}

.left-side .token-display {
    justify-content: flex-end;
}

.right-side .token-display {
    justify-content: flex-start;
}

.token.placeholder {
    visibility: hidden;
}

/* Legacy styles kept for compatibility */
.equation-side {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
}

.trade-buttons {
    display: flex;
    flex-direction: row;
    gap: 2px;
    padding: 0 4px;
}

.trade-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.trade-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Wares Card Styling (looks like black cards with 5 dots and optional star) */
.wares-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 5px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid #0a0a0a;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wares-card-header {
    text-align: left;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

/* Card number badge in bottom right corner */
.wares-card-number {
    position: absolute;
    bottom: 3px;
    right: 5px;
    background: transparent;
    color: #999;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
}

.wares-tokens {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.star-badge {
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    color: gold;
    font-size: 1.5em;
    text-shadow: 0 0 10px rgba(255,215,0,0.8);
}

/* Token Styling - 3D Sphere Effect */
.token {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-block;
    box-shadow:
        0 3px 6px rgba(0,0,0,0.4),
        inset -2px -3px 6px rgba(0,0,0,0.3),
        inset 2px 2px 4px rgba(255,255,255,0.4);
    border: none;
}

.token.red { background: radial-gradient(circle at 35% 35%, #ff9999, #ff6b6b 30%, #e74c3c 70%, #c0392b); }
.token.yellow { background: radial-gradient(circle at 35% 35%, #ffeb99, #ffd93d 30%, #f1c40f 70%, #d4ac0d); }
.token.white { background: radial-gradient(circle at 35% 35%, #ffffff, #f8f9fa 30%, #ecf0f1 70%, #bdc3c7); }
.token.blue { background: radial-gradient(circle at 35% 35%, #a9cef4, #5dade2 30%, #3498db 70%, #2980b9); }
.token.green { background: radial-gradient(circle at 35% 35%, #8fdfb0, #58d68d 30%, #2ecc71 70%, #27ae60); }

/* Small tokens for rate cards (match mobile mockup size) */
.rate-card .token {
    width: 16px;
    height: 16px;
}

/* Smaller tokens for wares cards to fit 211px height */
.wares-card .token {
    width: 28px;
    height: 28px;
}

/* Smaller tokens for build stalls and loose change bin */
.build-stall .token,
#token-collection .token {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Wares Stall Styling */
.wares-stall {
    padding: 0px;
    background: transparent;
}

.wares-stall-empty {
    border: 3px inset #0a0a0a;
    border-radius: 15px;
    background: transparent;
    color: #999;
    text-align: center;
}

.wares-stall-count {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Dice Styling - Glassmorphic Effect */
.dice-face {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
    box-shadow:
        0 8px 16px rgba(0,0,0,0.4),
        inset 3px 3px 6px rgba(255,255,255,0.3),
        inset -3px -3px 6px rgba(0,0,0,0.3);
    border: 2px solid #0a0a0a;
}

.dice-color-dot {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow:
        inset -3px -3px 6px rgba(255,255,255,0.25),
        inset 3px 3px 8px rgba(0,0,0,0.4);
    border: none;
}

.dice-choice-text {
    color: rgba(255,255,255,0.3);
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 2px;
    transform: rotate(45deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ========================================
 * 3D Floating Dice Styles (from game.php)
 * ======================================== */

.floating-dice-container {
    position: fixed;
    width: 100px;
    height: 100px;
    z-index: 1000;
    pointer-events: none;
    perspective: 1000px;
}

.dice-3d, .dice-3d-permanent {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotate3d(0.5, 0.5, 0.5, 45deg);
    transition: opacity 0.3s ease;
}

.dice-3d-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(240, 240, 240, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    transform-style: preserve-3d;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.dice-3d-face::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    transform: translateZ(-1px);
}

/* Dice face positioning */
.dice-3d-front { transform: translateZ(50px); }
.dice-3d-back { transform: rotateX(180deg) translateZ(50px); }
.dice-3d-right { transform: rotateY(90deg) translateZ(50px); }
.dice-3d-left { transform: rotateY(-90deg) translateZ(50px); }
.dice-3d-top { transform: rotateX(90deg) translateZ(50px); }
.dice-3d-bottom { transform: rotateX(-90deg) translateZ(50px); }

/* Color dots on each face */
.dice-3d-face.red::after,
.dice-3d-face.yellow::after,
.dice-3d-face.white::after,
.dice-3d-face.blue::after,
.dice-3d-face.green::after,
.dice-3d-face.choice::after {
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin: -30px 0 0 -30px;
    border-radius: 100%;
    transform: translateZ(1px);
}

.dice-3d-face.red::after {
    content: "";
    background: radial-gradient(circle at 35% 35%, #ff9999, #ff6b6b 30%, #e74c3c 70%, #c0392b);
}

.dice-3d-face.yellow::after {
    content: "";
    background: radial-gradient(circle at 35% 35%, #ffeb99, #ffd93d 30%, #f1c40f 70%, #d4ac0d);
}

.dice-3d-face.white::after {
    content: "";
    background: radial-gradient(circle at 35% 35%, #ffffff, #f8f9fa 30%, #ecf0f1 70%, #bdc3c7);
    box-shadow: 0 0 0 2px rgba(150, 150, 150, 0.4);
}

.dice-3d-face.blue::after {
    content: "";
    background: radial-gradient(circle at 35% 35%, #a9cef4, #5dade2 30%, #3498db 70%, #2980b9);
}

.dice-3d-face.green::after {
    content: "";
    background: radial-gradient(circle at 35% 35%, #8fdfb0, #58d68d 30%, #2ecc71 70%, #27ae60);
}

.dice-3d-face.choice::after {
    content: "?";
    width: auto;
    height: auto;
    margin: 0;
    transform: translate(-50%, -50%) translateZ(1px) rotateX(180deg) scaleX(-1);
    background: none;
    color: #667eea;
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    border-radius: 0;
}

/* Dice bounce animation paths */
@keyframes dice-bounce-path-1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-150px, -100px); }
    50% { transform: translate(100px, -80px); }
    75% { transform: translate(-80px, -60px); }
    100% { transform: translate(0, 0); }
}

@keyframes dice-bounce-path-2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(120px, -120px); }
    50% { transform: translate(-100px, -90px); }
    75% { transform: translate(60px, -50px); }
    100% { transform: translate(0, 0); }
}

@keyframes dice-bounce-path-3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-100px, -110px); }
    50% { transform: translate(150px, -100px); }
    75% { transform: translate(-50px, -70px); }
    100% { transform: translate(0, 0); }
}

@keyframes dice-bounce-path-4 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(80px, -130px); }
    50% { transform: translate(-120px, -85px); }
    75% { transform: translate(70px, -60px); }
    100% { transform: translate(0, 0); }
}

@keyframes dice-bounce-path-5 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-130px, -95px); }
    50% { transform: translate(90px, -115px); }
    75% { transform: translate(-60px, -55px); }
    100% { transform: translate(0, 0); }
}

@keyframes dice-tumble {
    0% { transform: rotate3d(0.5, 0.5, 0.5, 0deg); }
    100% { transform: rotate3d(1, 1, 1, 1080deg); }
}

/* Dice rotation animation (runs in reverse from 720deg to 0deg) */
@keyframes rotateDice {
    30% {
        transform: rotate3d(1, 1, 1, 0deg);
    }
    100% {
        transform: rotate3d(1, 1, 1, 720deg);
    }
}

/* Dice bounce animation using margin-top */
@keyframes throwDice {
    0% {
        margin-top: 0px;
    }
    20% {
        margin-top: -100px;
    }
    40% {
        margin-top: 0px;
    }
    60% {
        margin-top: -30px;
    }
    80% {
        margin-top: 0px;
    }
    85% {
        margin-top: -10px;
    }
    90% {
        margin-top: 0px;
    }
    95% {
        margin-top: -3px;
    }
    100% {
        margin-top: 0px;
    }
}

.dice-throwing {
    animation: rotateDice 1s ease-in reverse, throwDice 1s linear !important;
}

/* Gradual fade out animation for section hints */
@keyframes fade-out-slow {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hint-fade {
    animation: fade-out-slow 15s ease-in forwards;
}

/* ========================================
 * Toast Notifications (from game.php)
 * ======================================== */

.toast {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 7.5px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s;
    max-width: 300px;
}

.toast.success {
    background: rgba(46, 204, 113, 0.95);
}

.toast.error {
    background: rgba(231, 76, 60, 0.95);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.choice-color-btn:hover {
    transform: scale(1.1);
}

.choice-color-btn:active {
    transform: scale(0.95);
}

@keyframes diceRoll {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.dice-rolling {
    animation: diceRoll 0.5s ease-in-out;
}

/* ========================================
 * Mobile Responsive Styles
 * ======================================== */

@media (max-width: 768px) {
    /* Scale down wares and build stalls on mobile */
    .responsive-stall {
        width: calc((100vw - 207px - 9px - 2px) / 4) !important;
        max-width: 120px !important;
        min-width: 42px !important;
    }
}

/* ========================================
 * Lobby Page Styles (from lobby.php)
 * ======================================== */

.lobby-container {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        padding: 40px;
        margin: 30px auto;
        max-width: 700px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    .page-title {
        text-align: center;
        color: white;
        font-size: 2.5em;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        margin: 30px 0;
    }

    .game-code-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        padding: 25px;
        margin-bottom: 30px;
        text-align: center;
        color: white;
    }

    .game-code-label {
        font-size: 0.9em;
        margin-bottom: 10px;
        opacity: 0.9;
    }

    .game-code-display {
        font-size: 3em;
        font-weight: bold;
        letter-spacing: 0.3em;
        margin: 10px 0;
        font-family: 'Courier New', monospace;
    }

    .copy-code-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.4);
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9em;
        margin-top: 10px;
        transition: background 0.2s;
    }

    .copy-code-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .game-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .info-item {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
    }

    .info-label {
        font-size: 0.85em;
        color: #666;
        margin-bottom: 5px;
    }

    .info-value {
        font-size: 1.3em;
        font-weight: bold;
        color: #333;
    }

    .players-section {
        margin-bottom: 30px;
    }

    .players-title {
        font-size: 1.2em;
        color: #333;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .player-item {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .player-name {
        font-weight: bold;
        color: #333;
    }

    .player-badge {
        background: #3498db;
        color: white;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.8em;
        font-weight: bold;
    }

    .player-badge.host {
        background: #f39c12;
    }

    .empty-slot {
        background: #e9ecef;
        padding: 15px;
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
        color: #999;
        font-style: italic;
    }

    .start-game-btn {
        width: 100%;
        padding: 15px;
        font-size: 1.2em;
        font-weight: bold;
        background: #2ecc71;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 15px;
    }

    .start-game-btn:hover:not(:disabled) {
        background: #27ae60;
    }

    .start-game-btn:disabled {
        background: #95a5a6;
        cursor: not-allowed;
    }

    .leave-game-btn {
        width: 100%;
        padding: 12px;
        font-size: 1em;
        background: transparent;
        color: #e74c3c;
        border: 1px solid #e74c3c;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .leave-game-btn:hover {
        background: #e74c3c;
        color: white;
    }

    .waiting-message {
        text-align: center;
        color: #666;
        padding: 15px;
        background: #fff3cd;
        border-radius: 8px;
        margin-bottom: 15px;
    }

/* ========================================
 * Index/Landing Page Styles (from index.php)
 * ======================================== */

    .game-mode-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        padding: 15px;
        margin: 10px 2px;
        max-width: 600px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .game-mode-card:hover {
        box-shadow: 0 12px 24px rgba(0,0,0,0.3);
    }

    .game-mode-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 0;
    }

    .game-mode-icon {
        font-size: 3em;
        flex-shrink: 0;
    }

    .game-mode-content {
        text-align: left;
        flex: 1;
    }

    .game-mode-title {
        font-size: 1.5em;
        color: #333;
        margin: 0 0 5px 0;
        font-weight: bold;
    }

    .game-mode-description {
        font-size: 1.1em;
        color: #666;
        margin: 0;
    }

    .page-title {
        text-align: center;
        color: white;
        font-size: 1.5em;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        margin: 20px 0 15px 0;
    }

    .game-mode-card.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .game-mode-card.disabled .game-mode-title::after {
        content: " (Active)";
        font-size: 0.6em;
        color: #2ecc71;
    }

    .control-group {
        margin: 10px 0;
    }

    .control-label {
        display: block;
        font-weight: bold;
        color: #333;
        margin-bottom: 8px;
        font-size: 0.95em;
    }

    .options-table {
        width: 100%;
        margin-bottom: 0;
        border-collapse: collapse;
    }

    .options-table td {
        padding: 0;
        vertical-align: middle;
    }

    .options-table .header-cell {
        font-size: 1.5em;
        color: #333;
        font-weight: bold;
        padding: 5px;
    }

    .options-table .subheader-cell {
        font-size: 1.3em;
        color: #333;
        font-weight: bold;
        padding: 5px;
    }

    .options-table .label-cell {
        min-width: 110px;
        font-weight: bold;
        color: #333;
        font-size: 0.95em;
        vertical-align: bottom;
        padding-top: 8px;
    }

    .options-table .input-cell {
        width: 55%;
        vertical-align: bottom;
        padding-top: 8px;
    }

    .options-table .spacer-cell {
        width: 2%;
        padding: 0;
    }

    .options-table .button-cell {
        width: 23%;
        padding-top: 5px;
        height: 100%;
        vertical-align: stretch;
    }

    .options-table .go-button {
        width: 100%;
        min-height: 80px;
        height: 100%;
        margin: 0;
        font-size: 0.9em;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-container {
        position: relative;
        padding-bottom: 30px;
    }

    .slider-container.compact {
        padding-bottom: 0;
    }

    .slider {
        width: 100%;
        height: 8px;
        border-radius: 4px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #3498db;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #3498db;
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .slider-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 8px;
        padding: 0 12px;
        align-items: flex-end;
    }

    .slider-label {
        font-size: 1em;
        font-weight: bold;
        color: #666;
        text-align: center;
    }

    .slider-label.active {
        color: #3498db;
    }

    .go-button {
        width: 100%;
        height: 44px;
        font-size: 1.1em;
        font-weight: bold;
        color: white;
        background: linear-gradient(135deg, #3498db, #2980b9);
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transition: transform 0.2s, box-shadow 0.2s;
        margin-top: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .go-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .go-button:active {
        transform: translateY(0);
    }

    .go-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }
