/* Roleta App */
.roleta-content {
    padding: 0;
    background: var(--bg-dark);
}

.roleta-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100%;
    min-height: 460px;
}

.window.maximized .roleta-layout {
    grid-template-columns: 400px 1fr;
}

.window.maximized .roleta-wheel-container {
    width: 400px;
    height: 400px;
}

.window.maximized .roleta-canvas {
    width: 100%;
    height: 100%;
}

.roleta-editor {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-right: 1px solid var(--border);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.editor-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.empty-list {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.roleta-option {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg-light);
    border-radius: 6px;
}

.roleta-option input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.85rem;
}

.roleta-option input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.roleta-option input[type="number"] {
    width: 80px;
    padding: 8px 10px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.85rem;
    text-align: right;
}

.roleta-option input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.roleta-option .btn-remove {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.roleta-option .btn-remove:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.roleta-option .percent-suffix {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.editor-footer {
    margin-bottom: 12px;
}

.chance-indicator {
    padding: 10px;
    background: var(--bg-medium);
    border-radius: 6px;
    text-align: center;
}

.chance-indicator .total-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.chance-indicator .total-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 6px;
}

.chance-indicator .total-status {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.chance-indicator.complete .total-value {
    color: var(--primary);
}

.chance-indicator.complete .total-status {
    color: var(--primary);
}

.chance-indicator.incomplete .total-value {
    color: #ffaa00;
}

.chance-indicator.incomplete .total-status {
    color: #ffaa00;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    opacity: 0.9;
}

.btn-action {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: var(--bg-light);
}

.btn-action.btn-outline {
    border-style: dashed;
}

.btn-action.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.roleta-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 15px;
}

.roleta-wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
}

.roleta-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 4px var(--border),
        0 0 20px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roleta-wheel.spinning {
    transform: rotate(1440deg);
}

#roleta-canvas {
    width: 100%;
    height: 100%;
}

.roleta-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.btn-spin {
    width: 180px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-spin:disabled {
    background: var(--bg-light);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

.roleta-result {
    min-height: 40px;
    padding: 10px 20px;
    background: var(--bg-medium);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.roleta-result.winner {
    border-color: var(--primary);
    color: var(--primary);
    animation: result-pulse 0.5s ease-out;
}

@keyframes result-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.roleta-audio-hidden {
    display: none;
}
