/* ============================================
   Common Controls — Premium Betting UI
   ============================================ */

/* Game panel layout: game area + controls sidebar */
.game-panel {
    display: flex;
    flex-direction: row-reverse;
}

.game-panel-controls {
    width: 280px;
    min-width: 280px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-primary);
    border-right: 1px solid rgba(255,255,255,0.03);
}

.game-panel-area {
    flex: 1;
    min-width: 0;
    position: relative;
    background: var(--bg-card);
}

/* Bet input groups */
.bet-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bet-input-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
}

.input-with-btns {
    display: flex;
    gap: 0;
    background: rgba(15, 33, 46, 0.5);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s;
}

.input-with-btns:focus-within {
    border-color: var(--border-light);
}

.input-with-btns input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    outline: none;
    text-align: left;
    min-width: 0;
}

.input-with-btns input::-webkit-inner-spin-button,
.input-with-btns input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-btns input[type="number"] {
    -moz-appearance: textfield;
}

.bet-quick {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.1s;
}

.bet-quick:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

/* Select */
select {
    width: 100%;
    background: rgba(15, 33, 46, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23557086' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

select:focus {
    border-color: var(--border-light);
}

/* Play button */
.btn-play {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-play:hover {
    filter: brightness(1.1);
}

.btn-play:active {
    transform: scale(0.98);
}

.btn-play:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Default green play button */
.btn-primary {
    background: var(--green);
    color: var(--bg-darkest);
}

/* Notification toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.show { transform: translateX(0); }

.notification.win {
    background: rgba(0, 231, 1, 0.1);
    border: 1px solid rgba(0, 231, 1, 0.25);
    color: var(--green);
}

.notification.lose {
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.25);
    color: var(--red-bright);
}

.notification.info {
    background: rgba(20, 117, 225, 0.1);
    border: 1px solid rgba(20, 117, 225, 0.25);
    color: var(--blue);
}

/* Divider */
.controls-divider {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin: 4px 0;
}

/* Spacer */
.controls-spacer {
    flex: 1;
}

/* Info row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.info-row-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.info-row-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Toggle group */
.toggle-group {
    display: flex;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.toggle-btn {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}
